RE: Methods that return autoreleased objects?
RE: Methods that return autoreleased objects?
- Subject: RE: Methods that return autoreleased objects?
- From: "Omar Qazi" <email@hidden>
- Date: Sat, 28 Jun 2008 21:16:20 -0700
- Importance: normal
- Thread-topic: Methods that return autoreleased objects?
Oops. Sorry for the double reply. Stupid phone doesn't have a threaded view.
-----Original Message-----
From: Shawn Erickson <email@hidden>
Sent: Saturday, June 28, 2008 5:32 PM
To: john muchow <email@hidden>
Cc: email@hidden <email@hidden>
Subject: Re: Methods that return autoreleased objects?
On Sat, Jun 28, 2008 at 5:25 PM, john muchow <email@hidden> 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?
Who cares if it is autoreleased? That is essentially an implementation
detail in most situations.
Just learn the memory management rules, mix in common sense, look for
exceptions to the rules (very seldom do any exist) and follow the
rules in your own code.
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
-Shawn
_______________________________________________
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
_______________________________________________
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