Re: Removing quit button from dock menu

2010-02-24 Thread Mark Ritchie
On 24/Feb/2010, at 1:20 AM, yogin bhargava wrote: > Thanks for your responses. The application is an installer which has to > install something. And that installer should not be allowed to quit. Hi Yogin! I agree with the others who have posted... Using a standard package and the regular

Re: Removing quit button from dock menu

2010-02-24 Thread Jens Alfke
On Feb 24, 2010, at 1:20 AM, yogin bhargava wrote: >Thanks for your responses. The application is an installer which has to > install something. And that installer should not be allowed to quit. As others have said, it's better to use Apple's installer app, if possible. Don't try to remove

Re: Removing quit button from dock menu

2010-02-24 Thread Andrew Farmer
On 24 Feb 2010, at 05:09, Arun wrote: > I think what Yogin is looking for is something like what Finder has. The > finder doc menu does not has the "Quit" option in it. > Well i wish i could have given the solution if i were to know how finder has > did it. Unfortunately i am Novice in cocoa..!!!

Re: Removing quit button from dock menu

2010-02-24 Thread Arun
I think what Yogin is looking for is something like what Finder has. The finder doc menu does not has the "Quit" option in it. Well i wish i could have given the solution if i were to know how finder has did it. Unfortunately i am Novice in cocoa..!!! -Arun On Wed, Feb 24, 2010 at 6:32 PM, Andy L

Re: Removing quit button from dock menu

2010-02-24 Thread Andy Lee
Don't try to achieve this by removing UI options. For one thing, I'm not sure if this prevents AppleScript or shutdown from quitting your app. But regardless, instead of removing the Quit option without explanation, it's better to implement applicationShouldTerminate: in your application deleg

Re: Removing quit button from dock menu

2010-02-24 Thread Steven Degutis
Generally, Cocoa developers do not write installers, but instead use PackageMaker to install our apps for us. If it's not software you're installing then, well, I don't know what to tell you. But you still can't stop the user from quitting your app. If they really want to, they can quit it from the

Re: Removing quit button from dock menu

2010-02-24 Thread yogin bhargava
Hi All, Thanks for your responses. The application is an installer which has to install something. And that installer should not be allowed to quit. Thanks, YOGIN On Wed, Feb 24, 2010 at 12:32 AM, Mark Ritchie wrote: > Hi Yogin! > > On 22/Feb/2010, at 10:33 PM, yogin bhargava wrote: > > I d

Re: Removing quit button from dock menu

2010-02-23 Thread Mark Ritchie
Hi Yogin! On 22/Feb/2010, at 10:33 PM, yogin bhargava wrote: > I dont want to allow the user to quit my application except from the activity > monitor. Ok, I'm curious, in what circumstance would this workflow be obvious to the user of your application? I know that personally, I would be secure

Re: Removing quit button from dock menu

2010-02-23 Thread Andreas Mayer
Am 23.02.2010 um 16:13 Uhr schrieb Alex Kac: I think its better to let the user’s themselves admonish the developer. I think it's better - for developer and users - to tell new developers up front if something they are about to do is wrong. On the other hand, I realize there are (too man

Re: Removing quit button from dock menu

2010-02-23 Thread lbland
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 bee

Re: Removing quit button from dock menu

2010-02-23 Thread Alex Kac
t;Dave Carrigan" > Cc: > Sent: Tuesday, February 23, 2010 2:39 PM > Subject: Re: Removing quit button from dock menu > > No offense but that type of attitude and comment is unhelpful and one > reason cocoa devs sometimes have a not-so-nice reputation. I can > thin

Re: Removing quit button from dock menu

2010-02-23 Thread Paul Sanders
get rid of the menu item, but it does prevent it from quitting the app. And I guess you might beep, too. Paul Sanders. - Original Message - From: "Alex Kac" To: "Dave Carrigan" Cc: Sent: Tuesday, February 23, 2010 2:39 PM Subject: Re: Removing quit button from d

Re: Removing quit button from dock menu

2010-02-23 Thread Steven Degutis
As I mentioned before, doing this is not supported by Apple. What kind of app are you creating, and why exactly are you under the belief that users must not be able to quit it from the Dock? -Steven On Tue, Feb 23, 2010 at 1:33 AM, yogin bhargava wrote: > I dont want to allow the user to quit my

Re: Removing quit button from dock menu

2010-02-23 Thread Alex Kac
No offense but that type of attitude and comment is unhelpful and one reason cocoa devs sometimes have a not-so-nice reputation. I can think of several types of apps that need this. Kiosk apps, security apps, corporate apps, and so forth. I beg of you to stick to the technical on this list

Re: Removing quit button from dock menu

2010-02-23 Thread Dave Carrigan
On Feb 22, 2010, at 10:33 PM, yogin bhargava wrote: > I dont want to allow the user to quit my application except from the > activity monitor. I have removed the controls for apple+Q button and menu You need to explain to us why you hate your users so much. _

Re: Removing quit button from dock menu

2010-02-22 Thread yogin bhargava
I dont want to allow the user to quit my application except from the activity monitor. I have removed the controls for apple+Q button and menu option. Dock item is the only thing left. On Mon, Feb 22, 2010 at 9:15 PM, Mark Ritchie wrote: > On 21/Feb/2010, at 10:52 PM, yogin bhargava wrote: > >

Re: Removing quit button from dock menu

2010-02-22 Thread Mark Ritchie
On 21/Feb/2010, at 10:52 PM, yogin bhargava wrote: > I have an application for which I have to remove quitting option. > Anybody has idea how to remove it from the dock menu. What is the goal? Why would you want to do this? M. ___ Cocoa-dev mailin

Re: Removing quit button from dock menu

2010-02-22 Thread Steven Degutis
This is not supported because users should be able to quit any app they choose. However, if your app is a Kiosk app, then there are other measurements you can take to make sure it runs in Kiosk mode. Look in Apple's docs for "kiosk mode" for more details. -Steven On Mon, Feb 22, 2010 at 1:52 AM,

Removing quit button from dock menu

2010-02-21 Thread yogin bhargava
Hi everyone, I have an application for which I have to remove quitting option. Anybody has idea how to remove it from the dock menu. Thanks, -- YOGIN BHARGAVA, Flat No TF-2, Phase 4, Lotus Krest, Kundalahalli Colony, ITPL Main Road, Bangalore-560067 _