• 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
Re: Multiple instances of an app open?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple instances of an app open?


  • Subject: Re: Multiple instances of an app open?
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 24 Aug 2005 15:30:32 -0400

I've noticed that if you launch an application from the command line, it will not "merge up" with an already running instance. Try it for yourself and you will get as many instances as you desire.

Based on that fact, if I was trying to commit the UI crime you are trying to commit :) , I would probably look into making a wrapper app bundle that, upon being launched, manually invoked the executable of the real application held inside of it, and immediately quit. This should be enough to cause the Finder to repeatedly allow launches of the app, though you might have some trouble if the user tried to fire off two as fast as they can click...

Daniel

On Aug 24, 2005, at 3:15 PM, Theodore H. Smith wrote:

Is it possible to open multiple instances of a Cocoa app?

I know you are going to have something to say about this. The app is a windows app, that I've ported. They've done it in such a way that if they wanted to make it multiple document, it would have to be rebuilt from the ground up. Tons of global variables for just about everything. Even stuff that should be passed on the stack is made global, for no reason I can see.

So there is no way this app can be made multiple document based.

Is there any way multiple instances of the app can be opened then? I know this is wrong and bad, but I'd just like to know. I'd like to do it in a graceful way for the user, not ask them to duplicate the app in the Finder :)

--
http://elfdata.com/plugin/

What does our work achieve, if it's not making the world a happier place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our lives?



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Multiple instances of an app open?
      • From: Finlay Dobbie <email@hidden>
References: 
 >Multiple instances of an app open? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Multiple instances of an app open?
  • Next by Date: Re: Multiple instances of an app open?
  • Previous by thread: Multiple instances of an app open?
  • Next by thread: Re: Multiple instances of an app open?
  • Index(es):
    • Date
    • Thread