Re: How to remove the quit menu item of the Doc menu of anapplication?
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