Re: Removing quit button from dock menu
Re: Removing quit button from dock menu
- Subject: Re: Removing quit button from dock menu
- From: Arun <email@hidden>
- Date: Wed, 24 Feb 2010 18:39:09 +0530
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 Lee <email@hidden> wrote:
> 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
> delegate.
>
> Also, if possible try to make your application robust enough to recover if
> the user *does* manage to force it to quit -- for example, by pulling the
> plug on the computer.
>
> --Andy
>
> On Feb 24, 2010, at 4:20 AM, yogin bhargava wrote:
>
> > 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 <email@hidden>
> wrote:
> >
> >> 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
> >> deleting any application which worked this way however that's just my
> >> opinion. ;-)
> >>
> >>> I have removed the controls for apple+Q button and menu option. Dock
> item
> >> is the only thing left.
> >>
> >> And what about the other ways to terminate an application?
> >> For example, the force quit menu?
> >>
> >> It sounds me to that you might be developing an application which isn't
> >> intended to have a user interface? Is that the case? If so, then
> perhaps
> >> this isn't the best approach...
> >> M.
> >>
> >
> >
> >
> > --
> > YOGIN BHARGAVA,
> > Flat No TF-2,
> > Phase 4,
> > Lotus Krest,
> > Kundalahalli Colony,
> > ITPL Main Road,
> > Bangalore-560067
> > _______________________________________________
> >
> > 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
>
> _______________________________________________
>
> 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
>
_______________________________________________
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