• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Application without any menu, dock, etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Application without any menu, dock, etc.


  • Subject: Re: Cocoa Application without any menu, dock, etc.
  • From: David LeBer <email@hidden>
  • Date: Sat, 12 Feb 2011 13:27:21 -0500

On 2011-02-12, at 12:35 PM, 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.


Try setting:

<key>LSUIElement</key>
<string>1</string>

In your app's info.plist.

<http://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1>

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________

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

References: 
 >Cocoa Application without any menu, dock, etc. (From: Eckart Schlottmann <email@hidden>)

  • Prev by Date: Re: Cocoa Application without any menu, dock, etc.
  • Next by Date: Sleep Notification
  • Previous by thread: Re: Cocoa Application without any menu, dock, etc.
  • Next by thread: Sleep Notification
  • Index(es):
    • Date
    • Thread