First page Back Continue Last page Graphics
Object Initialization - finalize
finalize method
The garbage collector invokes this method on the receiver before disposing of the memory it uses.
There is no use for dealloc in the GC world. If you need to do some work when an object goes away, you can override -finalize, which is called when the object is finally collected, but there are some subtleties associated with finalize. But for the kind of programming you’ll be doing in Cocoa, you won’t need to worry about finalize.