• 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 remove the quit menu item of the Doc menu of anapplication?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to remove the quit menu item of the Doc menu of anapplication?


  • Subject: Re: How to remove the quit menu item of the Doc menu of anapplication?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 12 Jan 2005 10:09:10 -0600

On Wednesday, January 12, 2005, at 09:55AM, Darrin Cardani <email@hidden> wrote:

>At 6:39 AM -0800 1/12/05, Andrew Farmer <email@hidden> wrote:
>>On 11 Jan 2005, at 19:58, Sherman He wrote:
>>>  Anybody knows how to remove the quit menu item of the Doc menu of an
>>>  application?
>>
>>You can't. And, in any case, there's no valid reason (well, none I can
>>think of, at least) to do that.
>
>Actually, if you're writing a kiosk app for use in a retail space,
>for example, you don't want customers to be able to quit the
>application. There are some legitimate reasons to want to do it,
>though they are few and far between.

For my kiosk-type app, I use SetSystemUIMode.  There's a technote about all of this here:

<http://developer.apple.com/technotes/tn2002/tn2062.html>

Also, there are some existing bugs (my understanding is that they are fixed for Tiger).  One I filed was that you could still invoke Expose when in certain UI modes.

FWIW, my app hides both the Dock and menu bar and also disables Command-Tab.

In my about dialog, I have a link to my web site.  And the Demo version of the app will have a button which links to my online store.  I'm glad that the modes do not prevent me switching out to another app (user's browser) programatically.  However, I have seen the Quit menu item appear in the Dock menu for the app.  I would actually consider this a potential bug.   Or, you could at least file an enhancement to offer a new mode attribute that would disable the Quit menu item.

--
Rick Sharp
Instant Interactive(tm)
 _______________________________________________
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: 
 >Re: How to remove the quit menu item of the Doc menu of an application? (From: Darrin Cardani <email@hidden>)

  • Prev by Date: Re: How to remove the quit menu item of the Doc menu of an application?
  • Next by Date: Re: Obj-C NSRect methods help
  • Previous by thread: Re: How to remove the quit menu item of the Doc menu of an application?
  • Next by thread: Re: How to remove the quit menu item of the Doc menu of an application?
  • Index(es):
    • Date
    • Thread