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: Quincey Morris <email@hidden>
- Date: Tue, 23 Feb 2016 15:19:20 -0800
- Feedback-id: 167118m:167118agrif8a:167118sGVTIna0Eu:SMTPCORP
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