Re: Notifications and memory management
Re: Notifications and memory management
- Subject: Re: Notifications and memory management
- From: Jay Kuri <email@hidden>
- Date: Sun, 31 Mar 2002 12:23:52 -0600
Like everything else, if you didn't call +retain, +copy, or +alloc on
it, the object is already autoreleased. So the notification will get
released whenever the autorelease pool that contains it gets cleaned up.
Thanks. All of that makes sense to me now.
Basically, there isn't anything special about NSNotification objects -
they follow the same rules as everything else. Getting comfortable with
-retain, -release, -autorelease will help a lot. (There's some good
tutorials out there on this topic - check the one on www.stepwise.com,
for instance.)
I've read through those (the stepwise one I re-read only yesterday,
in fact) What I really wasn't clear on was if there were any differences
when multiple recipients were involved. I think I've got a better
handle on it now. Thanks a lot!
Jay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.