Re: Parallel instances of Cocoa apps?
Re: Parallel instances of Cocoa apps?
- Subject: Re: Parallel instances of Cocoa apps?
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 14 Sep 2007 07:53:27 -0700
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.
> * Which instance will be activated when the user opens one of your
> app's documents?
The most recent version (as in version number).
Anyway you will see possible issues with two or more instances sharing
preferences (user defaults) files in an uncoordinated fashion. Also
distributed object, distributed notification, etc. ports / names could
collide. In fact you likely will see "ServiceProvider" mach port
failures in the console log even if you don't use DO, etc.
-Shawn
_______________________________________________
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