Re: Removing quit button from dock menu
Re: Removing quit button from dock menu
- Subject: Re: Removing quit button from dock menu
- From: lbland <email@hidden>
- Date: Tue, 23 Feb 2010 10:43:52 -0500
hi-
On Feb 23, 2010, at 10:02 AM, Paul Sanders wrote:
> However, to answer the question, one can subclass NSApplication, override [NSApplication terminate] and not call super. That doesn't get rid of the menu item, but it does prevent it from quitting the app. And I guess you might beep, too.
2 ideas:
- Have the app put up a modal panel explaining that the app can only be quit from the Activity Monitor (or CLI). Or, better: Why redirect to the Activity Monitor? Why not use a delegate notification to ask the user if they really want to terminate? Why force a user to go to the Activity Monitor?
- Consider writing a UI-less service without a dock (and main menu) entry and pop up UI elements as needed.
thanks!-
-lance
_______________________________________________
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