• 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
Re: blocks and retaining CoreFoundation objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: blocks and retaining CoreFoundation objects


  • Subject: Re: blocks and retaining CoreFoundation objects
  • From: Wade Tregaskis <email@hidden>
  • Date: Wed, 10 Aug 2011 07:33:26 -0700

>> The ARC specification defines a "retainable pointer" as including those pointers that have the __attribute__((NSObject)) decoration, so this should behave as expected under ARC. <http://clang.llvm.org/docs/AutomaticReferenceCounting.html#objects>
>
> I am curious, though, in that CGImageRef is not toll-free bridged to a Foundation class. I had the impression that the API contract was that only bridged CF classes were guaranteed to implement reference-counting methods.

If a CF type isn't explicitly bridged to a particular class, it defaults to NSObject.  So you get all the basic object management if nothing else.
_______________________________________________

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

References: 
 >blocks and retaining CoreFoundation objects (From: Roland King <email@hidden>)
 >Re: blocks and retaining CoreFoundation objects (From: David Duncan <email@hidden>)
 >Re: blocks and retaining CoreFoundation objects (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Lion autosave: Undefined st_flags 0x40 bit being set, causing errors
  • Next by Date: Re: Opening a file read-only?
  • Previous by thread: Re: blocks and retaining CoreFoundation objects
  • Next by thread: Using #define a good way for String constants, like enums for NSIntegers?
  • Index(es):
    • Date
    • Thread