Re: C++ pointer to Cocoa object
Re: C++ pointer to Cocoa object
- Subject: Re: C++ pointer to Cocoa object
- From: Casey McDermott <email@hidden>
- Date: Sat, 08 Sep 2018 14:32:14 +0000 (UTC)
>> 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.
In this case we put the Cocoa controls into a NSView, which releases them.
The NSView deletes our LView, which deletes the C++ controls.
Thanks,
Casey McDermott
www.TurtleSoft.com
_______________________________________________
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