Re: ARC + return of autoreleased CFType
Re: ARC + return of autoreleased CFType
- Subject: Re: ARC + return of autoreleased CFType
- From: Quincey Morris <email@hidden>
- Date: Thu, 20 Oct 2011 17:31:16 -0700
On Oct 20, 2011, at 15:38 , Jean-Daniel Dupas wrote:
> Le 20 oct. 2011 à 23:38, Bill Cheeseman a écrit :
>
>> I found this discovery extraordinarily helpful in using Analyze to kill memory issues in a couple of frameworks I distribute. The frameworks make heavy use of CFTypeRef objects. I would love to hear from anybody at Apple who can confirm that this is the way Analyze is meant to work.
>>
>
> If you want to avoid ambiguity, just add a CF_RETURNS_RETAINED annotation attribute to your method.
And I'll just throw in this reference:
http://clang-analyzer.llvm.org/annotations.html
which I found to be a good overview of what the analyzer is trying to do, though it doesn't address Bill's question directly.
_______________________________________________
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