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
{
[name release];
[airports release];
[airlines release];
//etc..
// And lastly, make sure you call dealloc on your superclass
[super dealloc];
}
I'm not sure what errors you're getting, but this will probably help a
bunch.
Follow those rules, and you really can't go wrong.
-Jonah
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
found
on the O'reilly website. I get a lot of warnings when I follow the
book....
Most of them are method not found warnings.
While I have declared them in the header file....
No piece of paper can be folded more than 7 times.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.