Re: Cocoa-dev Digest, Vol 16, Issue 72
Re: Cocoa-dev Digest, Vol 16, Issue 72
- Subject: Re: Cocoa-dev Digest, Vol 16, Issue 72
- From: Jens Alfke via Cocoa-dev <email@hidden>
- Date: Mon, 26 Aug 2019 11:47:54 -0700
> On Aug 25, 2019, at 5:49 PM, Turtle Creek Software via Cocoa-dev
> <email@hidden> wrote:
>
> No use of NSBridgingRetain or Release at all. Is that necessary under ARC?
Those functions are only for casting CoreFoundation types to/from Obj-C.
> The void pointers are mostly to text fields and controls, plus the app
> delegate
> and one view. None of those have had lifetime problems. We mostly just
> access them and have them do one thing.
Unless your C++ code is cross-platform, it's better to use Obj-C types in it
instead of casting them to void*. (Change the source file suffix to ".mm" if
you haven't already.) Then ARC will manage them properly.
—Jens
_______________________________________________
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