Re: Going back to non-ARC
Re: Going back to non-ARC
- Subject: Re: Going back to non-ARC
- From: John Brownie <email@hidden>
- Date: Fri, 12 Jun 2015 19:00:38 +1000
On Fri Jun 12 2015 18:45:49 GMT+1000 (PGT) Ken Thomases wrote:
On Jun 12, 2015, at 3:18 AM, John Brownie <email@hidden> wrote:
Having worked with ARC code for a long while, I discovered an incompatibility with a library that means I have to convert to non-ARC code.
Before we address the how, let's make sure of the why. What is the nature of this incompatibility? ARC was designed so that code compiled with ARC can interoperate just fine with code compile with manual retain/release, and vice versa. So, there should be no need to abandon ARC just because of a third-party library. What lead you to believe there is such a need?
Well, it's the Nano library for handling various data structures such as
NS collections, CF collections, strings, etc, in C++. It works fine
without ARC, but falls in a heap when trying to compile for
Objective-C++. I saw my options as either backing out of ARC, or writing
a bunch of shims in plain C to avoid Objective-C++, and the former
seemed easier. My model code is mostly C++, with Objective-C for the
view and controller parts.
John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea | Papua New Guinea
_______________________________________________
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