• 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: Markus Spoettl <email@hidden>
  • Date: Sat, 28 Jun 2008 17:43:55 -0700

On Jun 28, 2008, at 5:25 PM, john muchow wrote:
The last thread that I saw on this topic was dated sometime in
2004....if there is something more recent that I didn't find, I
apologize up front...

I realize nothing has probably changed as far as the API and the
documentation to indicate autoreleased methods, however, can someone
provide any insight as to how one knows if a method from a framework
returns an autoreleased object?


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.

More information here:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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>)

  • Prev by Date: Re: List of Indexed Accessor Names for NSMutableArray
  • Next by Date: Garbage Collection woes...
  • Previous by thread: Re: Methods that return autoreleased objects?
  • Next by thread: Re: Methods that return autoreleased objects?
  • Index(es):
    • Date
    • Thread