Re: Cocoa Command Line Application
Re: Cocoa Command Line Application
- Subject: Re: Cocoa Command Line Application
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 7 Jul 2003 18:27:08 -0700
On Sunday, July 6, 2003, at 11:07 AM, David Lee wrote:
I need an application (one without a GUI or menu bar or anything) to
be launched at the time a user logs in. It does some monitoring until
the point the user logs out at which point it quits. The application
needs to make use of the cocoa frameworks because it needs to display
a window containing a message at certain times when it detects that
certain events have occurred. The only other application I have seen
this happen in is the PPP connect daemon, which flags up messages when
the phone line connection goes down etc...
Is what I want even possible?
Yes. One of my applications, LetterStick, does this...
How do I go about it and which project in project builder should I
choose?
Just create a new Cocoa project, open up the target settings, click on
the "advanced options" in the Info.plist settings, and create a new key
called "LSUIElement". Set the key's contents to be "1" (all without the
quotes, of course). Now the application will be launched as a UI
element. UI elements don't have a foreground, don't appear in the Dock,
and don't appear in the Force Quit list, but they do run as separate
processes, and they can open window manager connections.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"You can't modify a constant, float upstream, win an argument with the
IRS, or satisfy this compiler" - actual MPW 68K compiler error message
_______________________________________________
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.