• 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: How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application (From: "jacky.zhu" <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary problems - I think
  • Next by Date: Re: Detecting when the number of lines in an NSTextView has changed (SOLVED)
  • Previous by thread: How to determine where the kAEQuitApplication event from when on the method of [NSApplication applicationShouldTerminate] of a cocoa application
  • Next by thread: Memory management with archives
  • Index(es):
    • Date
    • Thread