Re: Cocoa Application without any menu, dock, etc.
Re: Cocoa Application without any menu, dock, etc.
- Subject: Re: Cocoa Application without any menu, dock, etc.
- From: Dave DeLong <email@hidden>
- Date: Sat, 12 Feb 2011 10:26:18 -0800
Pretty easy:
- add an entry to your Info.plist: "LSUIElement" => true (this is the "Application is agent" entry)
It's not necessary to delete the menu from MainMenu.xib, because I believe that's only used when your app lives in the Dock. Leaving it in allows your app to still respond to things like cmd-Q when its in the foreground.
Dave
On Feb 12, 2011, at 9:35 AM, Eckart Schlottmann wrote:
> Hello,
>
> I wrote an application (using NSApplication) that adds a StatusItem to the StatusBar. Since this is totally sufficient and the application actually has no window I want to remove the menu of the application, the entry in the dock and also the application shall not appear when pressing cmd+tab.
> Any idea how to do this is very much appreciated.
>
> Greetings
> Eckart
_______________________________________________
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