Re: How to hide dock item and application menu?
Re: How to hide dock item and application menu?
- Subject: Re: How to hide dock item and application menu?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 25 Jan 2010 23:34:23 +0100
Le 25 janv. 2010 à 23:24, Jens Alfke a écrit :
>
> On 25 Jan 2010, at 18:06, Arun wrote:
>
>> Hi All,
>>
>> In my application i need to provide an option to hide its dock icon as well
>> as the application menu.
>> How can i achieve this? I know that In Info.plist if i add an entry to run
>> the application as Agent we will not see dock and menu item.
>
> Actually the key you want is LSUIElement — this indicates that you can display a user interface but shouldn't have a menu bar or dock icon.
>
>> This is not
>> useful to me as my req is to provide the option to user to hide/unhide dock
>> and menu item.
>
> You can't change that while your app is running. You have to modify your own Info.plist and then relaunch. (And remember that a non-admin user typically won't have permission to modify any of the app's files, if it's in /Applications.)
And that it will invalidate your application signature if it is signed.
-- Jean-Daniel
_______________________________________________
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