• 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
How to force launch of new instance of application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to force launch of new instance of application?
      • From: "Gary L. Wade" <email@hidden>
    • Re: How to force launch of new instance of application?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Cocoa Asynchronous API Design
  • Next by Date: Re: How to force launch of new instance of application?
  • Previous by thread: Re: Cocoa Asynchronous API Design
  • Next by thread: Re: How to force launch of new instance of application?
  • Index(es):
    • Date
    • Thread