• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLProtocol and custom URL scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSURLProtocol and custom URL scheme
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Endian-ness of "PkgInfo" file
  • Next by Date: Re: NSURLProtocol and custom URL scheme
  • Previous by thread: Re: NSMutableData: Adding One char to a NSMutableData Object
  • Next by thread: Re: NSURLProtocol and custom URL scheme
  • Index(es):
    • Date
    • Thread