Detecting if application is running as Finder
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