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

launchApplication


  • Subject: launchApplication
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 21 Nov 2001 19:57:28 +0100

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?

Gerriet.


  • Follow-Ups:
    • Re: launchApplication
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Reloading System preferences UI
  • Next by Date: Re: Mutability
  • Previous by thread: Reloading System preferences UI
  • Next by thread: Re: launchApplication
  • Index(es):
    • Date
    • Thread