I don't think he meant it to be taken literally!  I took it as a 
tongue-in-cheek way to ask why the OP wants to do this.  I found it rather 
amusing.

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.

Paul Sanders.

----- Original Message ----- 
From: "Alex Kac" <[email protected]>
To: "Dave Carrigan" <[email protected]>
Cc: <[email protected]>
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  
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.

-- 
Sent from my mobile phone
(please excuse any mistakes or short response I might have made)

On Feb 23, 2010, at 8:15 AM, Dave Carrigan <[email protected]> wrote:

>
> 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.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to