Choosing an instance of a running app to open file
Choosing an instance of a running app to open file
- Subject: Choosing an instance of a running app to open file
- From: Jeff Disher <email@hidden>
- Date: Sun, 23 Feb 2003 12:42:39 -0500
Hello,
I am trying to write an app which needs to open documents with their
default bindings sometimes. This works fine unless there are multiple
running copies of the app. For example, this can happen when the user
is trying a new version of app they are still running the old version
of, or when they are running one copy of themselves and one as root.
I have been using NSWorkspace's openFile: method to make sure that the
file is opening with the application that the user would expect but
this technique breaks down here and I don't have any control over which
instance will open the document.
Is there any way to send use the pid, or something, to control which
instance will actually open the document?
Thanks,
Jeff.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.