• 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: Getting key events when the program is in the background?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting key events when the program is in the background?


  • Subject: Re: Getting key events when the program is in the background?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 29 Jun 2002 23:13:55 +0100

On Saturday, June 29, 2002, at 10:22 PM, Pierre-Olivier Latour wrote:

What's the best way to create a background only app in Cocoa i.e. a deamon?

I set "NSBGOnly" to 1 in the info.plist and it works fine, but should it
still be a .app bundle, or should I change the extension?

It should still be .app, but NSBGOnly is deprecated in favour of LSBackgroundOnly, I think (only the latter is documented, anyhow). Or, if you want a true daemon, see "MyFirstDaemon" sample at developer.apple.com/samplecode

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Getting key events when the program is in the background? (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: Gif to TIFF and transparency
  • Next by Date: Re: Getting the version of an application.
  • Previous by thread: Re: Getting key events when the program is in the background?
  • Next by thread: Making a window non-draggable
  • Index(es):
    • Date
    • Thread