• 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
Detecting if application is running as Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting if application is running as Finder


  • Subject: Detecting if application is running as Finder
  • From: Mike Joseph <email@hidden>
  • Date: Thu, 8 Oct 2009 23:25:56 -0700

Hi folks,

I am writing an application the replaces the Finder (by writing to
com.apple.loginwindow/Finder).  That bit is working fine and my application
starts up normally as expected.  However, it would be very useful if I could
enable different behavior in my application depending on whether it is
started as Finder or just launched by the user.
Does anyone know of any mechanism for an application to detect if it is
running as Finder?

I know that launchd pays special attention to the application it considers
to be Finder since it will restart it when it exits, etc.  So clearly
launchd knows the PID/PSN of "Finder".  Surely there's some way to ask for
it, but I can't figure out how.

Thanks.

-MJ
_______________________________________________

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

  • Prev by Date: Re: Undo architecture advice needed
  • Next by Date: Re: Hide an Item on Desktop
  • Previous by thread: Re: Undo architecture advice needed
  • Next by thread: Re: Detecting if application is running as Finder
  • Index(es):
    • Date
    • Thread