• 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: Cocoa Command Line Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Cocoa Command Line Application
      • From: Pierre Neihouser <email@hidden>
References: 
 >Cocoa Command Line Application (From: David Lee <email@hidden>)

  • Prev by Date: Re: NSHTTPURLResponse
  • Next by Date: Re: ScreenSaver cleanup
  • Previous by thread: Cocoa Command Line Application
  • Next by thread: Re: Cocoa Command Line Application
  • Index(es):
    • Date
    • Thread