> On Aug 25, 2019, at 5:49 PM, Turtle Creek Software via Cocoa-dev > <cocoa-dev@lists.apple.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com