Re: Method Call
Re: Method Call
- Subject: Re: Method Call
- From: Conrad Shultz <email@hidden>
- Date: Wed, 06 Jun 2012 14:53:58 -0700
On 6/6/12 2:34 PM, koko wrote:
> On Jun 6, 2012, at 3:25 PM, Erik Stainsby wrote:
>
>> I think the approach you would use is to employ -[NSWorkspace] to launch the other app on your behalf.
>
> I was looking at that. Not sure how to determine if the app was launched that way and not by a user.
>
> Any suggestions?
Use –[NSWorkspace launchApplicationAtURL:options:configuration:error:]
and set the configuration dictionary contents to something meaningful to
the app being launched.
You could probably also rig something up by registering your app to act
as a custom protocol handler, then pass information in via the URI.
This might be more useful if you want third-party apps to be able to
easily open your app with certain options, but is likely a little
messier than just launching with configuration options.
Would you care to explain what your motivation is? We might also be
able to suggest an alternate approach entirely that would better suit
your needs.
--
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________
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