• 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: launchApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchApplication


  • Subject: Re: launchApplication
  • From: Andreas Monitzer <email@hidden>
  • Date: Wed, 21 Nov 2001 20:47:40 +0100

On Wednesday, November 21, 2001, at 07:57 , Gerriet M. Denkmann wrote:

When I do:
[[NSWorkspace sharedWorkspace] launchApplication: @"OtherApp" ];

followed by:
[NSConnection rootProxyForConnectionWithRegisteredName:@"OtherApp" host: nil ]

this will not work, if MyApp is not already running.
Obviously launchApplication returns immediately without waiting for MyApp to complete launching.

Then I tried:
[ [NSWorkspace sharedWorkspace ] notificationCenter] addObserver ..NSWorkspaceDidLaunchApplicationNotification object: nil]

but this send a message, when this app finished launching, but nothing after launching of OtherApp.

What to do? How do I find out if and when OtherApp is ready to open a connection?

Use a distributed notification for informing the calling process when OtherApp is ready (-> NSDistributedNotificationCenter).

andy


References: 
 >launchApplication (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Resizing views
  • Next by Date: programaic truncation for a NSTableColumn cell(s)
  • Previous by thread: launchApplication
  • Next by thread: Re: Resizing views
  • Index(es):
    • Date
    • Thread