Thanks for the suggestion. I found that -viewDidLoad does indeed get called even thought the app does not come to the foreground. This is a good thing as far as I'm concerned. No doubt Apple figured a lot of apps would break if they started an app and -viewDidLoad was never invoked.
-Michael On Jun 20, 2013, at 12:54 PM, Fritz Anderson <fri...@manoverboard.org> wrote: > On 20 Jun 2013, at 11:20 AM, Michael Crawford <michaelacrawf...@me.com> wrote: > >> When iOS automatically restarts a VoIP app that has crashed or been removed >> by the watchdog for some reason, does -viewDidLoad run when the app is >> automatically restarted? >> >> I ask because when this type of restart occurs, it appears to happen >> silently, without presenting the restarted app's window in the foreground. >> Since this condition is kind of difficult to test or duplicate on my device, >> I though some of you might have experience with this behavior and could tell >> me what you observed. >> >> I am trying to trigger this behavior by allocating huge amounts of memory on >> a timer and then leaking it on purpose but so far, instead of getting a >> memory warning and then subsequently having the app evicted due to memory >> pressure, malloc simply returns nullptr. I've tried this with allocation >> units of 100 megabytes and then with 1 megabyte. > > > The watchdog shuts the app down peremptorily, without warning. I'd think you > could get the same effect simply by calling abort(), perhaps in a background > task. > > — F > > -- > Fritz Anderson > Xcode 4 Unleashed: 4.5 supplement for free! > http://www.informit.com/store/xcode-4-unleashed-9780672333279 > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com