Re: retain and autorelease
Re: retain and autorelease
- Subject: Re: retain and autorelease
- From: Ben Dougall <email@hidden>
- Date: Fri, 14 Nov 2003 23:41:30 +0000
On Friday, November 14, 2003, at 10:27 pm, Kyle Moffett wrote:
An unretained object like that is in the autorelease pool of a method
up the call stack, and you can't
(without setjmp/longjmp) get back up there without first passing back
into your method. An object like that is fine.
i see, so an object that's got from a convenience method by your method
and not retained by your method, is absolutely guaranteed to at least
hang round until the end of your method (as in reaching the end or
coming across a return), so long as nothing else effects it elsewhere
somehow.
i had always been wary of not retaining, even for a short period.
ok, thanks.
_______________________________________________
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.