Re: ARC code in a non ARC app. iOS
Re: ARC code in a non ARC app. iOS
- Subject: Re: ARC code in a non ARC app. iOS
- From: Alex Zavatone <email@hidden>
- Date: Tue, 23 Feb 2016 18:29:41 -0500
Ok. Great. I knew there would be some scariness in there I'd need to know about.
Are there any tools in Instruments or approaches to make sure I'm not going to destroy the universe when calling my stuff?
I'm planning on starting by loading a placeholder one screen storyboard as an initial test tomorrow morn.
Is that well advised
TY Mr. Q.
Cheers, AZAVATON
Sent from my iPhone
> On Feb 23, 2016, at 6:19 PM, Quincey Morris <email@hidden> wrote:
>
>> On Feb 23, 2016, at 13:30 , Alex Zavatone <email@hidden> wrote:
>>
>> Now, I'm familiar with the -fno-objc-arc build flags to disable compiling one file at a time, but is there any possibility to include iOS code that does use ARC within an app that doesn't?
>
> You can mix-and-match ARC source with non-ARC (MMR) source. Just do it the other way around — add -Fobj-arc to the source files that need it.
>
> The only thing to be careful of is that pointers that cross the boundaries of your ARC code must respect ARC conventions. That is, you might need to use bridged retains and releases, or use casting to describe the memory management characteristics of non-ARC-managed pointers.
>
>
_______________________________________________
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