• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Arc per file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arc per file


  • Subject: Re: Arc per file
  • From: Crispin Bennett <email@hidden>
  • Date: Fri, 19 Oct 2012 15:01:41 +1000


On 19/10/2012, at 2:37 PM, Joar Wingfors wrote:

You can compile individual source files as either ARC / MRR by passing the appropriate compiler flags per file. You can specify per-file compiler files in:

Project Editor > Target > Compile Phases > Compile Sources > Foo.m

Joar


Just to expand on this, you could try:

- in Compile Phases, select all except the file you wish to convert to ARC, and add the -fno-objc-arc flag
- now convert your project to ARC.

The only further implication I know offhand would be that future files would use ARC unless you explicitly add -fno-objc-arc. But your current manually-managed files would be unchanged.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Arc per file
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Arc per file (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Arc per file (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Arc per file
  • Next by Date: Re: Xcode 3.2.6 on 10.8?
  • Previous by thread: Re: Arc per file
  • Next by thread: Re: Arc per file
  • Index(es):
    • Date
    • Thread