Re: How to hide dock item and application menu?
Am 25.01.2010 um 23:24 Uhr schrieb Jens Alfke: 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. Well, you can transform a background-only application into a foreground application: http://developer.apple.com/mac/library/documentation/Carbon/Reference/Process_Manager/Reference/reference.html#/ /apple_ref/c/func/TransformProcessType This works as expected since 10.5. http://www.cocoadev.com/index.pl?TransformProcessType Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
How to hide dock item and application menu?
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. This is not useful to me as my req is to provide the option to user to hide/unhide dock and menu item. Any ideas? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: How to hide dock item and application menu?
On Jan 25, 2010, at 10:06 AM, 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. This is not useful to me as my req is to provide the option to user to hide/unhide dock and menu item. There is no supported way to do this in Mac OS X. -eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: How to hide dock item and application menu?
On 25/Jan/2010, at 10:06 AM, Arun wrote: as my req is to provide the option to user to hide/unhide dock and menu item. Perhaps if you explained what you're trying to accomplish we could provide some direction? M. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: How to hide dock item and application menu?
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. This is not useful to me as my req is to provide the option to user to hide/ unhide dock and menu item. Any ideas? Thanks Arun I believe QuickSilver does something like this. It might be useful to take a rummage through it's codebase: http://code.google.com/p/blacktree-alchemy/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: How to hide dock item and application menu?
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.) —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: How to hide dock item and application menu?
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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com