Re: Faceless background agent application
Re: Faceless background agent application
- Subject: Re: Faceless background agent application
- From: Keith Alperin <email@hidden>
- Date: Wed, 3 Aug 2005 09:32:52 -0500
Thanks Daniel. I've read a little about LSUIElement before, but
didn't quite get how to put it all together. It sounds like I should
start with the Cocoa Application template in XCode, and put all of my
initialization and handling code in main.m . Does this sound correct?
Thanks again!
Keith
On Aug 3, 2005, at 7:17 AM, Daniel Jalkut wrote:
Hi Keith - the google word you're looking for is "lsuielement".
Daniel
On Aug 3, 2005, at 7:34 AM, Keith Alperin wrote:
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:
sweater.com
This email sent to email@hidden
_______________________________________________
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