• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGImageRef as a property of a cocoa object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CGImageRef as a property of a cocoa object
      • From: Roland King <email@hidden>
  • Prev by Date: Re: RunLoop in Helper Tool
  • Next by Date: Re: CGImageRef as a property of a cocoa object
  • Previous by thread: Re: RunLoop in Helper Tool
  • Next by thread: Re: CGImageRef as a property of a cocoa object
  • Index(es):
    • Date
    • Thread