• 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: an app that never quits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: an app that never quits


  • Subject: Re: an app that never quits
  • From: PCWiz <email@hidden>
  • Date: Tue, 22 Sep 2009 22:36:07 -0600

There are few ways I know of that would make this possible. One way is a daemon, which is started every time the computer starts (or possibly when you log in). The daemon then runs in the background and provides notifications when necessary. Another way this is possible (a more commonly used and easier way) is just to set the app as an LSUIElement. This is done by editing your apps Info.plist and adding this key:

<key>LSUIElement</key>
<true />

An LSUIElement is almost like a background application, it has no Dock icon and no menu bar, making it virtually invisible. The app can then be set as a login item by the app installer so it runs when you log on.

Hope this helps

On 2009-09-22, at 10:30 PM, Erick Calder <email@hidden> wrote:

I had a thought: how do alarms work? the application (the Clock) isn't running all the time, yet, 7am the alarm goes off... how did the Clock get itself started (without my permission)? and if you look at the alarms... there is no Clock window! it's just a message of some kind... so how does that work and can I do the same thing?

_______________________________________________

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
_______________________________________________

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: 
 >an app that never quits (From: Erick Calder <email@hidden>)
 >Re: an app that never quits (From: Erick Calder <email@hidden>)
 >Re: an app that never quits (From: Sixten Otto <email@hidden>)
 >Re: an app that never quits (From: Erick Calder <email@hidden>)
 >Re: an app that never quits (From: Kyle Sluder <email@hidden>)
 >Re: an app that never quits (From: Jens Alfke <email@hidden>)
 >Re: an app that never quits (From: Erick Calder <email@hidden>)
 >Re: an app that never quits (From: Jens Alfke <email@hidden>)
 >Re: an app that never quits (From: Erick Calder <email@hidden>)
 >Re: an app that never quits (From: Rob Keniger <email@hidden>)
 >Re: an app that never quits (From: Erick Calder <email@hidden>)

  • Prev by Date: Re: an app that never quits
  • Next by Date: Re: an app that never quits
  • Previous by thread: Re: an app that never quits
  • Next by thread: Re: an app that never quits
  • Index(es):
    • Date
    • Thread