Re: C++ pointer to Cocoa object
Re: C++ pointer to Cocoa object
- Subject: Re: C++ pointer to Cocoa object
- From: Alastair Houghton <email@hidden>
- Date: Mon, 10 Sep 2018 10:09:20 +0100
On 8 Sep 2018, at 15:32, Casey McDermott <email@hidden> wrote:
>
>>> If you are using ARC and want to get a strong
> reference on the object, you have to use __bridge_retained
>
> That is handy to know! I see there is also __bridge_transfer to go the other
> way.
IMO the Core Foundation wrappers CFBridgingRetain( ) and CFBridgingRelease()
are slightly easier to follow in code; I’ve never been a huge fan of having
lots of double-underscore things floating about.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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