• 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
How to tell if app launched via login item (versus manual launch)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to tell if app launched via login item (versus manual launch)


  • Subject: How to tell if app launched via login item (versus manual launch)
  • From: "Mark Aufflick" <email@hidden>
  • Date: Wed, 26 Nov 2008 17:38:51 +1100

Hi all,

I'm wondering if it's possible to tell if my application was launched
normally by the user, or if it was launched by virtue of being in the
login items.

I don't see anything in NSApplication to that effect. I'm guessing the
parent process might be different, but I'm hoping there is a standard
non-fragile way of doing it?

Cheers,

Mark.

--
Mark Aufflick
  contact info at http://mark.aufflick.com/about/contact
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to tell if app launched via login item (versus manual launch)
      • From: Ken Thomases <email@hidden>
    • Re: How to tell if app launched via login item (versus manual launch)
      • From: Michael Watson <email@hidden>
  • Prev by Date: NSImage/NSImageView/GIF Saving an Animated GIF from NSImageView
  • Next by Date: Re: Killing a Thread
  • Previous by thread: Re: NSImage/NSImageView/GIF Saving an Animated GIF from NSImageView
  • Next by thread: Re: How to tell if app launched via login item (versus manual launch)
  • Index(es):
    • Date
    • Thread