I could have sworn in either the apple docs (or one of the cocoa
books, maybe this board). I maybe thinking of the general rule that
you don't own the object until you retain it and its only valid or the
within the method that its recieved. My bad.
Scott
On Sep 3, 2009, at 11:29 AM, mmalc Crawford wrote:
On Sep 3, 2009, at 7:56 AM, Scott Andrew wrote:
As Cocoa documentation states all items returned from a message are
autoreleased unless otherwise stated in the documentation for the
API call.
The documentation emphatically does not state that.
The basic rules are given here:
<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html#//apple_ref/doc/uid/20000994-BAJHFBGH
>
The rest of the document gives further details.
mmalc
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com