Faceless background agent application
Faceless background agent application
- Subject: Faceless background agent application
- From: Keith Alperin <email@hidden>
- Date: Wed, 3 Aug 2005 06:34:13 -0500
Greetings cocoa-devs:
I'm attempting to write a faceless background application that will
perform an action when certain keys are pressed. Apple calls this
type of application an "Agent Application" (http://
developer.apple.com/documentation/MacOSX/Conceptual/
OSX_Technology_Overview/SoftwareDevelopment/chapter_3_section_6.html)
but other than this quick description of what it is, the
documentation is mum on how to write one. I've been able to use the
carbon hot key API to get the key handling to work, however, i'm not
sure how to write an application that runs in the background. This
may just be my objective-c/cocoa/unix programming newbieness, but
i've only been able to accomplish the following: a) a gui app, where
i can turn on the key handling via a button in a window or b) a
command line app that exits immediately and doesn't do anything.
Is there a standard way to make a command line tool that will keep
running so that my handler function will be around to execute?
Many thanks,
Keith R. Alperin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden