Re: iOS: Preventing a singleton from being deallocated when the app is in the background.
Re: iOS: Preventing a singleton from being deallocated when the app is in the background.
- Subject: Re: iOS: Preventing a singleton from being deallocated when the app is in the background.
- From: Jens Alfke <email@hidden>
- Date: Wed, 19 Oct 2016 14:14:30 -0700
> On Oct 19, 2016, at 2:04 PM, Doug Hill <email@hidden> wrote:
>
> Presumably if the app is terminated due to inactivity everything would be dealloc'd including singletons. No idea if that is happening or not in this case though.
No, nothing would be dealloced. The whole process would just be killed, and _nothing_ would happen in it after that point, including seeing a null singleton pointer. So that’s not what the problem is.
—Jens
_______________________________________________
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