CGImageRef as a property of a cocoa object
CGImageRef as a property of a cocoa object
- Subject: CGImageRef as a property of a cocoa object
- From: Kevin Meaney <email@hidden>
- Date: Sun, 15 Sep 2013 11:26:19 +0100
I'm using ARC on Xcode (unmentionable) on OS X redacted using latest features. I do believe however that we are allowed to discuss ARC related issues as they are already published on the clang.llvm.org website.
Anyway I'd like to have the CGImageRef object treated the same as any cocoa object that is a property using the strong qualifier.
I've seen the following discussed on stack overflow.
@property (strong) __attribute__((NSObject)) CGImageRef snapShot;
The discussion on stack overflow seems to suggest that using this attribute is not recommended and there is contradictory information. That you should use a typedef, or that you shouldn't.
http://stackoverflow.com/questions/9684972/strong-property-with-attribute-nsobject-for-a-cf-type-doesnt-retain
I'm not worried about the bug related to nonatomic that they are discussing, just the discussion about the use of the attribute.
What is the recommended way of achieving what I'd like?
Kevin
_______________________________________________
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