Then, if you're retaining your instance variables (which you should be,
in most cases... Watch out for retain loops though...) you'll have to
write a dealloc method too, so that you can release them. Otherwise,
you get memory leaks. Bad thing.
- (void) dealloc //This will get called by the system when your
object is no longer in use
// And lastly, make sure you call dealloc on your superclass
I'm not sure what errors you're getting, but this will probably help a
Follow those rules, and you really can't go wrong.
On Wednesday, April 24, 2002, at 08:47 AM, Erick van Rijk wrote:
Why are there differences between the O'reilly book and the Examples
on the O'reilly website. I get a lot of warnings when I follow the
Most of them are method not found warnings.
While I have declared them in the header file....