Re: Open program from custom schema link
Re: Open program from custom schema link
- Subject: Re: Open program from custom schema link
- From: Juanjo Conti <email@hidden>
- Date: Mon, 29 Jun 2015 14:27:30 -0300
Found it Jens:
func applicationWillFinishLaunching(aNotification: NSNotification?) {
var appleEventManager:NSAppleEventManager =
NSAppleEventManager.sharedAppleEventManager()
appleEventManager.setEventHandler(self, andSelector:
"handleGetURLEvent:withReplyEvent:", forEventClass:
kInternetEventClass, andEventID: kAEGetURL)
}
Now, I wonder if I can, from the website, redirect the user to a download
page if the app is not installed in the computer.
Any idea?
Thanks in advance!
On Mon, Jun 29, 2015 at 1:22 PM, Jens Alfke <email@hidden> wrote:
>
> On Jun 28, 2015, at 9:59 PM, Juanjo Conti <email@hidden>
> wrote:
>
> Is it is suppose to call MyApp with "something" as argument? How do I read
> "something" from the run app?
>
>
> Your app delegate will be called and given the URL, although it’s been a
> long time since I implemented this functionality and on a quick scan of
> NSApplication.h I couldn’t find the relevant method. Someone else here must
> remember…
>
> —Jens
>
--
Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
<email@hidden>>
Software Engineer - Carousel Apps <https://carouselapps.com>
--
Carousel Apps Limited, registered in England & Wales with registered number
7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket
Street, London SE1 3HN. Any communication sent by or on behalf of Carousel
App Ltd or any of its subsidiary, holding or affiliated companies or
entities (together "Watu") is confidential and may be privileged or
otherwise protected. If you receive it in error please inform us and then
delete it from your system. You should not copy it or disclose its contents
to anyone. Messages sent to and from Watu may be monitored to ensure
compliance with our internal policies and to protect our business. Emails
are not secure and cannot be guaranteed to be error free. Anyone who
communicates with us by email is taken to accept these risks.
_______________________________________________
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