Hi,
I've looked all over and just can't seem to find the recommended
approach to handling CF objects in properties when using ARC.
I have an init method that needs to create a CF object and store it
as a property for use while the object is alive. When the object is
released I want to release the CF Object,
Code:
-(id) init
{
// normal init code
CFThingRef myCFThing = CFThingCreate();
self.propCFThing = myCFThing;
}
-(void) dealloc
{
CFRelease(self.propCFThing);
self.propCFThing = NULL;
}
This code gives analyzer warnings saying that a CF object has leaked.
What is the best way to stop the warnings?
Thanks in Advance
Dave
_______________________________________________
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com