• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: retain and autorelease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: retain and autorelease
      • From: Wade Tregaskis <email@hidden>
    • Re: retain and autorelease
      • From: Kyle Moffett <email@hidden>
References: 
 >Re: retain and autorelease (From: Kyle Moffett <email@hidden>)

  • Prev by Date: Re: XCode with different compilier?
  • Next by Date: Re: retain and autorelease
  • Previous by thread: Re: retain and autorelease
  • Next by thread: Re: retain and autorelease
  • Index(es):
    • Date
    • Thread