Re: Removing quit button from dock menu
Re: Removing quit button from dock menu
- Subject: Re: Removing quit button from dock menu
- From: "Paul Sanders" <email@hidden>
- Date: Tue, 23 Feb 2010 15:02:42 -0000
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@hidden>
To: "Dave Carrigan" <email@hidden>
Cc: <email@hidden>
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@hidden> 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@hidden)
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:
This email sent to email@hidden