• 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: Pierre-Olivier Latour <email@hidden>
  • Date: Sat, 29 Jun 2002 23:22:24 +0200

>> 1) how do you get key events in your program even when it is in the
>> background? Is there a clean way to do it, or do you have to use a
>> timer and
>> GetKeys()?
>
> Search HotKeys in the archives or at www.cocoadev.com

> See http://www.obdev.at/developers/articles/00001.html -- not easy, and
> it's an evil hack anyway.

Thanks for the info!

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?


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Manager and Lead Programmer
French Touch software http://www.french-touch.net

Cool source code: http://www.french-touch.net/CodeWareHouse
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting key events when the program is in the background?
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: Getting key events when the program is in the background? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: dragging images/slide back
  • Next by Date: Re: Selecting submenu root
  • Previous by thread: Re: Getting key events when the program is in the background?
  • Next by thread: Re: Getting key events when the program is in the background?
  • Index(es):
    • Date
    • Thread