[Q] which arrives earlier? applicationShouldTerminate or applicationWillTerminate
[Q] which arrives earlier? applicationShouldTerminate or applicationWillTerminate
- Subject: [Q] which arrives earlier? applicationShouldTerminate or applicationWillTerminate
- From: JongAm Park <email@hidden>
- Date: Thu, 25 May 2006 23:52:42 -0700
Hello.
I would like to terminate a thread when an application program quits.
So, I tried checking when the "Quit" is invoked. One simple approach is
to set a flag when applicationWillTerminate: or
applicationShouldTerminate is invoked.
I don't know which one is called first. So I put NSLog() into each method.
It turned out that applicationShouldTerminated is called first.
However, Apple's document says that they are called immediately before
an application quit.
So, I am not sure if the order of calling is always preserved, or
sometimes it changes.
Is the applicationShouldTerminated called before
applicationWillTerminate always?
Thank you.
JongAm Park
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden