• 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: Trying to understand -- please help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to understand -- please help...


  • Subject: Re: Trying to understand -- please help...
  • From: "Hamish Allan" <email@hidden>
  • Date: Wed, 21 May 2008 22:09:11 +0100

On Wed, May 21, 2008 at 7:35 PM, Johnny Lundy <email@hidden> wrote:

> All it would take is a single sentence under the "Class Methods" header, to
> say that these methods autorelease the returned object (AND that such
> autoreleasing means that the object will be deallocated if the method in
> which it was created returns).

No: autorelease is useful precisely because the object will not be
deallocated when the method in which it was created returns. Please
see http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html.

Hamish
_______________________________________________

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

References: 
 >Trying to understand -- please help... (From: Johnny Lundy <email@hidden>)

  • Prev by Date: Re: Trying to understand -- please help...
  • Next by Date: Scrolling NSStatusBar
  • Previous by thread: Re: Trying to understand -- please help...
  • Next by thread: Re: Trying to understand -- please help...
  • Index(es):
    • Date
    • Thread