• 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: Background if Login Item launched
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Background if Login Item launched (From: Bill Patterson <email@hidden>)

  • Prev by Date: window won't become main or key programmatically
  • Next by Date: Re: How to scroll a text view
  • Previous by thread: Background if Login Item launched
  • Next by thread: Re: Background if Login Item launched
  • Index(es):
    • Date
    • Thread