NSURLProtocol and custom URL scheme
NSURLProtocol and custom URL scheme
- Subject: NSURLProtocol and custom URL scheme
- From: Shoaib Hannani <email@hidden>
- Date: Sat, 14 Jan 2006 11:50:34 -0600
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://".
Can someone tell my what I'm missing? I've searched the docs and the
list with no clear answer on how to get this to work.
Thanks,
Shoaib
xhead software
http://www.xheadsoftware.com
_______________________________________________
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