Re: Background if Login Item launched
Re: Background if Login Item launched
- Subject: Re: Background if Login Item launched
- From: Jerry Krinock <email@hidden>
- Date: Thu, 29 Sep 2005 14:18:03 -0700
- Thread-topic: Background if Login Item launched
on 05/09/29 12:02, Bill Patterson at email@hidden wrote:
> How can I detect if the application is launched via the Login Items?
I'm not sure; check the command-line arguments argc and argv.
> How can I force the application to remain in the background after it
> is launched, even if it is the last or only Login Item?
Before you do too much work on this project, I advise you to clarify for
yourself, and then your readers here, exactly what you mean by "in the
background" by answering whether or not it should appear
- in the Dock?
- in the Force Quit menu?
- in the the cmd-tab Application Switcher (Panther, Tiger only)?
To make a long story short, there are ways of switching applications between
"foreground" and "background", but they don't always do everything you want
them to; the cleanest approach is to compile and package two separate
executables: one for "foreground", one for "background".
_______________________________________________
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