Re: NSURLProtocol and custom URL scheme
Re: NSURLProtocol and custom URL scheme
- Subject: Re: NSURLProtocol and custom URL scheme
- From: Shawn Erickson <email@hidden>
- Date: Sat, 14 Jan 2006 09:53:00 -0800
On Jan 14, 2006, at 9:50 AM, Shoaib Hannani wrote:
I'm having trouble implementing a custom URL scheme for my
application.
I've implemented a subclass of NSURLProtocol and registered it
using [NSURLProtocol registerClass:[MyURLProtocol class]].
I've even edited the Info.plist file and added a key for
CFBundleURLTypes as follows:
<key>CFBundleURLTypes</key>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.mycompany.myscheme</string>
<key>CFBundleURLSchemes</key>
<array>
<string>myscheme</string>
</array>
</dict>
However, when I type "myscheme://something" in Safari address
field, I'm told "Mac OS X doesn't recognize Internet addresses
starting with myscheme://".
Make sure that the above is actually getting into you application's
plist (peer into the applications package). If it is their then
"touch" the plist entry in your application's bundle or drag and drop
you application into the application folder. You basically need to
kick Launch Services to index your applications plist.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden