Re: ARC + return of autoreleased CFType
Re: ARC + return of autoreleased CFType
- Subject: Re: ARC + return of autoreleased CFType
- From: Greg Parker <email@hidden>
- Date: Thu, 20 Oct 2011 13:20:33 -0700
On Oct 20, 2011, at 10:11 AM, Matt Neuburg wrote:
> You know there's a rule that Create means a retained ref is returned
There is no such rule in the Cocoa memory management conventions.
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html
There is a "Create" rule in the convention for CoreFoundation functions, but that convention does not apply to Objective-C methods.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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