Re: How to remove a stantard item of the dock menu of an application
Re: How to remove a stantard item of the dock menu of an application
- Subject: Re: How to remove a stantard item of the dock menu of an application
- From: Andrew Farmer <email@hidden>
- Date: Mon, 17 Jan 2005 23:01:54 -0800
On 17 Jan 2005, at 22:42, jacky.zhu wrote:
I would like to remove the quit menu item of the dock menu of my
application.
Not like disabling all the dock menu, the requirement of the
application is only removing the quit item.
I don't know how to do it. Would any one be so kind as to give me some
advices and a simple example ?
On the 11th of January at 19:58:20 PST, a colleague of yours (Sherman
He) wrote:
Anybody knows how to remove the quit menu item of the Doc menu of an
application?
and in response, M. Uli Kusterer wrote:
...you shouldn't do that. You'll have your app's icon sitting in the
dock without a way to remove it. Unless you're in business for
nagware, adware and spyware, that's hardly desirable. Instead, you may
want to split your app in two parts: A daemon, which is a constantly
running background app (see the NSUIElement and NSBackgroundOnly flags
for your Info.plist), and a GUI app which the user can launch to
manage the app.
It's especially popular to make the GUI app a SystemPreferences.app
.prefPane, because that's where most other system daemons (like httpd,
aka Apache) are launched and quit.
Asking twice won't help.
Why, exactly, do you need to do this anyway?
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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