Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > "Special" URLs

"Special" URLs
Thread Tools
Junior Member
Join Date: Sep 2003
Location: Nowhere, Missouri
Status: Offline
Reply With Quote
Feb 11, 2004, 10:40 PM
 
How do apps like iSeek and SubEthaEdit respond to special URLs throughout the system? I'm talking about things like iseek:// and hydra://. Do they have to get a special server? Can it be done in Objective-C? (I think that's what those two programs are written in anyways). I know moki frequents the MacNN forms, not necessarily this one, but I doubt he'd be privy to giving out secret information. Unless it's something easy and public knowledge. Thanks in advance.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Feb 12, 2004, 06:33 AM
 
URL schemes are dealt with by LaunchServices.

In order to let LS know that your app can handle URL schemes you need to add keys to your Info.plist

I can't seem to find the official Docs, but here's something to get you started:

http://them.ws/?p=775
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Feb 12, 2004, 04:11 PM
 
Yep -- you define URL types in you Info.plist the same way you define document types. Project Builder / Xcode even has a spiffy little editor for them.

Of course, that's just what you need to do to get the system to hand off URLs to your app. To actually do something when handed a URL, you need respond to the standard "GetURL" AppleEvent (suite 'GURL', event 'GURL'). This is pretty easy to do with Cocoa's scriptability support.
Rick Roe
icons.cx | weblog
     
Arclite  (op)
Junior Member
Join Date: Sep 2003
Location: Nowhere, Missouri
Status: Offline
Reply With Quote
Feb 12, 2004, 09:39 PM
 
It works! Thanks for the help, you two!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2