> On Oct 4, 2013, at 12:08 AM, Nick Rogers <roger...@mac.com> wrote:
> 
> Hi,
> 
> I need to know if a binary is executing or not. I just have the path to the 
> binary e.g. /Applications/MyApp.app/Contents/MacOS/MyApp

From the OS’s point of view, your question is ill-formed. The user can create a 
hardlink to the same inode at /tmp/someapp and execute that.

> Is this even possible?

I can think of a couple strategies:

1. Have the target app create a resource that goes away when the app 
terminates. Maybe a pipe? Something that the system will destroy when the 
helper app terminates.

2. Move your helper apps to XPC services. (Almost certainly Apple’s preferred 
approach.)

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to