• 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: ARC + return of autoreleased CFType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC + return of autoreleased CFType


  • Subject: Re: ARC + return of autoreleased CFType
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 19 Oct 2011 07:51:56 -0700

On Oct 19, 2011, at 6:24 AM, Roland King <email@hidden> wrote:

> Following Cocoa convention you'd want to cast it to what and autorelease it? CGColorRef isn't toll-free bridged with anything. If you have been casting it to id and autoreleasing it you might have gotten away with that before but I don't think it's documented anywhere you can do that with CFTypes in general.

All Core Foundation objects are at least bridged to NSObject precisely so you can call -retain/-release/-autorelease on  them.

--Kyle Sluder_______________________________________________

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: 
 >ARC + return of autoreleased CFType (From: John Pannell <email@hidden>)
 >Re: ARC + return of autoreleased CFType (From: Roland King <email@hidden>)

  • Prev by Date: Re: ARC + return of autoreleased CFType
  • Next by Date: Re: ARC + return of autoreleased CFType
  • Previous by thread: Re: ARC + return of autoreleased CFType
  • Next by thread: Re: ARC + return of autoreleased CFType
  • Index(es):
    • Date
    • Thread