Re: How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application
Re: How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application
- Subject: Re: How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application
- From: Nathan Day <email@hidden>
- Date: Mon, 21 Feb 2005 06:31:37 +1100
Perhaps you should give more information about the effect you are
trying to achieve, could you just remove the quit menu item, though as
a user I would find that pretty annoying. In that case you would still
be able to quit your app indirectly like with apple scripts.
On 20/02/2005, at 8:06 PM, jacky.zhu wrote:
hi all,
In my application, how can I determine the cause of
applicationShouldTerminate of NSApplication being invoked?
I would like to keep the application from being closed , so I let it
always return NO. However, this gives rise of another problem, the
system can't reboot or logout because this application reject to quit.
How can I do that ?
Would any nice guy help me? Any idea is helpful.
Thanks & Best Regards,
Jacky Zhu
<imstp_emo_en.gif><imstp_emo_en.gif>
_______________________________________________
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
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
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