• 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: Britt Durbrow <email@hidden>
  • Date: Fri, 13 May 2016 15:57:59 -0700

If that wasn’t called out clearly in that non-ARC class’s documentation/header, then that non-ARC class was Doing It Wrong(tm).


> On May 13, 2016, at 2:55 AM, Dave <email@hidden> wrote:
>
> 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


_______________________________________________

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


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>)
 >Re: ARC [was Protecting against "app nap"] (From: Dave <email@hidden>)

  • Prev by Date: Re: Recurrent background thread
  • Next by Date: Re: unwind segue on navigation pop
  • Previous by thread: Re: ARC [was Protecting against "app nap"]
  • Next by thread: Too many wakes >15 in 300 seconds when app is in the background - iOS
  • Index(es):
    • Date
    • Thread