• 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: Methods that return autoreleased objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Methods that return autoreleased objects?


  • Subject: Re: Methods that return autoreleased objects?
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 28 Jun 2008 23:58:21 -0700


On Jun 28, 2008, at 9:59 PM, Charles Srstka wrote:

Methods that begin with "alloc" or "new" or contain "copy" will return objects you are responsible for. All other objects returned from methods are taken care of.

Well, there is the notable exception of top-level objects loaded from a NIB file, which do need to be released.


... which is documented:
<http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_3.html# >


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Methods that return autoreleased objects?
      • From: Charles Srstka <email@hidden>
References: 
 >Methods that return autoreleased objects? (From: "john muchow" <email@hidden>)
 >Re: Methods that return autoreleased objects? (From: Markus Spoettl <email@hidden>)
 >Re: Methods that return autoreleased objects? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Garbage Collection woes...
  • Next by Date: Re: mutableArrayForKeyValue Question (ignore other email)
  • Previous by thread: Re: Methods that return autoreleased objects?
  • Next by thread: Re: Methods that return autoreleased objects?
  • Index(es):
    • Date
    • Thread