Re: self release
Re: self release
- Subject: Re: self release
- From: Wolfgang Ante <email@hidden>
- Date: Mon, 12 May 2003 19:34:07 +0200
Is it OK to "[self release]"?
I think you'd want to [self autorelease]?
That way the object won't actually be freed in the calling scope.
Well, actually I have an autorelease pool in use where I want to
release, so I would write...
[self autorelease];
[pool release];
...which means I will just release one line later. Otherwise I would
use autorelease, to be on the save side, you are right.
Bye, Wolfgang :-)
_______________________________________________
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.