solved re: Faceless background agent application
solved re: Faceless background agent application
- Subject: solved re: Faceless background agent application
- From: Keith Alperin <email@hidden>
- Date: Wed, 3 Aug 2005 23:15:17 -0500
I had a chance to try it out and it works perfectly. For posterity,
this is what i did:
1)add the LSUIElement to my info.plist:
<key>LSUIElement</key>
<string>1</string>
2)use Interface Builder to make sure that none of my windows have
"Visible at launch time" checked.
3)call a method from within the main method in main.m which registers
my hot key
4)compile, launch and enjoy my faceless app!
Thanks again,
Keith
On Aug 3, 2005, at 5:36 PM, Daniel Jalkut wrote:
You don't even need to put it all in main.m. You can start with a
Cocoa Application template, make sure it does everything exactly
how you would like it to, and add the LSUIElement attribute at any
time to get the faceless behavior you're looking for. It can be
handy in some instances to keep the menu bar and dock icon around
while debugging.
In other words, there's just nothing very special about being
faceless :)
Daniel
On Aug 3, 2005, at 10:32 AM, Keith Alperin wrote:
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?
_______________________________________________
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