• 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 [was Protecting against "app nap"]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC [was Protecting against "app nap"]


  • Subject: Re: ARC [was Protecting against "app nap"]
  • From: Dave <email@hidden>
  • Date: Fri, 13 May 2016 10:55:42 +0100

Hi,

The other thing to watch out for is if you have non ARC Classes in your project, you can forget that they are using assign rather than weak for properties (so the reference doesn’t get zeroed) that can lead to sending message to objects that have been destroyed if you are not careful. You have the same problem with Non-ARC of course, but once you have used ARC for a while you tend to forger about the non ARC classes and expect it to work like the rest of your App. I only say this, because I had a nasty bug that took quite a while to find because I was assuming everything was ARC.

Also I’ve found when converting from Non-ARC to ARC that in doing so can reveal code smells and often you can simplify things…..

All the Best
Dave


_______________________________________________

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: ARC [was Protecting against "app nap"]
      • From: Britt Durbrow <email@hidden>
References: 
 >Protecting against "app nap" (From: Jonathan Taylor <email@hidden>)
 >Re: Protecting against "app nap" (From: Jens Alfke <email@hidden>)
 >Re: Protecting against "app nap" (From: Jonathan Taylor <email@hidden>)
 >Re: Protecting against "app nap" (From: Jens Alfke <email@hidden>)
 >Re: ARC [was Protecting against "app nap"] (From: Jonathan Taylor <email@hidden>)
 >Re: ARC [was Protecting against "app nap"] (From: Jens Alfke <email@hidden>)

  • Prev by Date: Application Activation Problem
  • Next by Date: Re: Application Activation Problem
  • Previous by thread: Re: ARC [was Protecting against "app nap"]
  • Next by thread: Re: ARC [was Protecting against "app nap"]
  • Index(es):
    • Date
    • Thread