how to make your app process non-http URLs
how to make your app process non-http URLs
- Subject: how to make your app process non-http URLs
- From: Steve Sheets <email@hidden>
- Date: Tue, 24 Apr 2007 09:41:56 -0400
The only thing worst than not knowing how to write some code, is not
being able to, because you have forgotten what you once knew!!!
Help!
(Oh, did I mention I can't find the code I wrote ages ago?)
I want to add code to my program so that when a user clicks on a link
from some web page from within Safari, and that URL has my custom non-
http link, that URL information is passed to my application. For
example, if I wanted to have the user start a game within my
application, the URL might be "game://checker.twoplayer.classic". The
application would not only launch, but be passed the exact
"checker.twoplayer.classic" information so it could be used as
parameters for some action. This is the way AIM & AOL handle links to
AIM and AOL chats and pages.
I know you have to register the URL type inside the app's plist file,
but can not find mine, or anyone else, examples of this. Nor can I
find the actual application method you must override (or notification
you must handle) to actually process the URL. Can someone lead me in
the right direction? Documentation? Or better yet, provide some
source code?
Thank you!
Steve Sheets
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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