• 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: prefPane with background process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prefPane with background process


  • Subject: Re: prefPane with background process
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 2 Apr 2008 10:43:59 -0700


On 2 Apr '08, at 8:36 AM, Trygve Inda wrote:

To make sure the worker app does not show up in the dock add this to its
info.plist:
<key>NSUIElement</key>
<string>1</string>

It's actually LSUIElement.
Whether this key is appropriate depends on what the service does. If it has a user interface (uses AppKit) but just doesn't want to show up in the Dock or have a menu bar, then LSUIElement is the way to go. But for a real background process with no UI, it's better to use LSBackgroundOnly instead. The difference is that LSBackgroundOnly processes don't get a connection to the window server, which saves system resources.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Re: prefPane with background process (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: How to store NSRect as Core Data attribute?
  • Next by Date: Re: Alternating Button
  • Previous by thread: Re: prefPane with background process
  • Next by thread: Subviews of a borderless window - autoresizing mask does not work for me
  • Index(es):
    • Date
    • Thread