• 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: Parallel instances of Cocoa apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Parallel instances of Cocoa apps?
      • From: "Clark Cox" <email@hidden>
References: 
 >Cocoa, iTunes, AppleScript - performance issue (From: Steve Cronin <email@hidden>)
 >SOLVED: Cocoa, iTunes, AppleScript - performance issue BUT a Question arises (From: Steve Cronin <email@hidden>)
 >Parallel instances of Cocoa apps? (From: Jay Reynolds Freeman <email@hidden>)
 >Re: Parallel instances of Cocoa apps? (From: John Stiles <email@hidden>)
 >Re: Parallel instances of Cocoa apps? (From: Jay Reynolds Freeman <email@hidden>)
 >Re: Parallel instances of Cocoa apps? (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Parallel instances of Cocoa apps?
  • Next by Date: Re: Pages document
  • Previous by thread: Re: Parallel instances of Cocoa apps?
  • Next by thread: Re: Parallel instances of Cocoa apps?
  • Index(es):
    • Date
    • Thread