• 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
Choosing an instance of a running app to open file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Choosing an instance of a running app to open file


  • Subject: Choosing an instance of a running app to open file
  • From: Jeff Disher <email@hidden>
  • Date: Sun, 23 Feb 2003 12:42:39 -0500

Hello,

I am trying to write an app which needs to open documents with their default bindings sometimes. This works fine unless there are multiple running copies of the app. For example, this can happen when the user is trying a new version of app they are still running the old version of, or when they are running one copy of themselves and one as root.

I have been using NSWorkspace's openFile: method to make sure that the file is opening with the application that the user would expect but this technique breaks down here and I don't have any control over which instance will open the document.

Is there any way to send use the pid, or something, to control which instance will actually open the document?

Thanks,
Jeff.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Choosing an instance of a running app to open file
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: NSStatusBar limit?
  • Next by Date: Re: NSStatusBar limit?
  • Previous by thread: Re: Project Builder won't launch
  • Next by thread: Re: Choosing an instance of a running app to open file
  • Index(es):
    • Date
    • Thread