How to force launch of new instance of application?
How to force launch of new instance of application?
- Subject: How to force launch of new instance of application?
- From: Jay Reynolds Freeman <email@hidden>
- Date: Tue, 24 May 2011 09:13:20 -0700
I would like to set things up for my application so that every
time the user mouses on a document of the application to open it,
a *new* instance of the application is launched to handle just
that one document. Thus if the user moused on many documents,
many instances of the application would be running at the same
time.
The best way I have thought of of doing that is to write an
[NSApplication openFile] method for the app, that performs
any necessary extra launch. That is kind of inelegant, though.
Can anyone recommend a better way? I haven't found any way to
specify this behavior so that the system knows about it at
mouse-the-document time, and thus can do what is necessary without
my intervention.
Details as to why I want this behavior are long and probably
irrelevant, contact me privately if you would like to know ...
Thanks!
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
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