• 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: Removing quit button from dock menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Removing quit button from dock menu (From: yogin bhargava <email@hidden>)
 >Re: Removing quit button from dock menu (From: Mark Ritchie <email@hidden>)
 >Re: Removing quit button from dock menu (From: yogin bhargava <email@hidden>)
 >Re: Removing quit button from dock menu (From: Dave Carrigan <email@hidden>)
 >Re: Removing quit button from dock menu (From: Alex Kac <email@hidden>)
 >Re: Removing quit button from dock menu (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: High Level Toolkit -- is it obsolete or not?
  • Next by Date: custom NSActionCell in an NSTableView that uses Cocoa Bindings
  • Previous by thread: Re: Removing quit button from dock menu
  • Next by thread: Re: Removing quit button from dock menu
  • Index(es):
    • Date
    • Thread