• 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: Why do we use -fobjc-arc instead of removing code with #define?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why do we use -fobjc-arc instead of removing code with #define?


  • Subject: Re: Why do we use -fobjc-arc instead of removing code with #define?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 26 Jun 2012 11:20:56 +1000

On 26/06/2012, at 7:42 AM, Greg Parker wrote:

> We recommend each file be written for either one or the other, with no attempt to be ARC-agnostic.


Does this imply that ARC can be adopted gradually?

For example, I have a large project that uses manual memory management. If I add a new class to it, can I write that class with ARC without having to adopt it for the whole project? I've been able to do that with properties and other Obj-C 2.0 stuff very successfully, but it wasn't clear that ARC could be managed the same way. If it can be done, how is ARC enabled for a specific class?


--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: Why do we use -fobjc-arc instead of removing code with #define?
      • From: Uli Kusterer <email@hidden>
    • Re: Why do we use -fobjc-arc instead of removing code with #define?
      • From: Dave DeLong <email@hidden>
References: 
 >Why do we use -fobjc-arc instead of removing code with #define? (From: Jerry Krinock <email@hidden>)
 >Re: Why do we use -fobjc-arc instead of removing code with #define? (From: Dave DeLong <email@hidden>)
 >Re: Why do we use -fobjc-arc instead of removing code with #define? (From: Jerry Krinock <email@hidden>)
 >Re: Why do we use -fobjc-arc instead of removing code with #define? (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Trap mouse and keyboard events
  • Next by Date: Re: Why do we use -fobjc-arc instead of removing code with #define?
  • Previous by thread: Re: Why do we use -fobjc-arc instead of removing code with #define?
  • Next by thread: Re: Why do we use -fobjc-arc instead of removing code with #define?
  • Index(es):
    • Date
    • Thread