Re: Parallel instances of Cocoa apps?
Re: Parallel instances of Cocoa apps?
- Subject: Re: Parallel instances of Cocoa apps?
- From: "Clark Cox" <email@hidden>
- Date: Fri, 14 Sep 2007 07:57:40 -0700
On 9/14/07, Shawn Erickson <email@hidden> wrote:
> On 9/14/07, Clark Cox <email@hidden> wrote:
> > On 9/13/07, Jay Reynolds Freeman <email@hidden> wrote:
> > > I asked ...
> > >
> > > > I need to run multiple copies of a Cocoa application (that
> > > > I am writing) at the same time. [...]
> > >
> > > and John Stiles has provided useful comments, for which
> > > thanks very much. However, I did not make myself clear.
> > > What I was trying to ask was whether there were any
> > > Cocoa-specific troubles one could get into with parallel
> > > instances of the same application, and if so, whether there
> > > were any Cocoa APIs to dodge them.
> >
> > I don't think there are any Cocoa-specific issues with doing so, but
> > there are plenty of non-Cocoa specific issues. Off the top of my head:
> >
> > * Which instance will be activaed when the user double-clicks your
> > app's icon in the Finder?
>
> The instance they double-click.
They don't double-click an instance, they double-click a file (or
bundle in the case of an application). If you've got two instances of
the same app running, then they both came from the same app on disk.
> > * Which instance will be activated when the user opens one of your
> > app's documents?
>
> The most recent version (as in version number).
They're the same app; by definition, they have the same version and
modification date.
--
Clark S. Cox III
email@hidden
_______________________________________________
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