• 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
Re: NSURLProtocol and custom URL scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSURLProtocol and custom URL scheme (From: Shoaib Hannani <email@hidden>)

  • Prev by Date: NSURLProtocol and custom URL scheme
  • Next by Date: Re: Getting started with WebKit plugins
  • Previous by thread: NSURLProtocol and custom URL scheme
  • Next by thread: URLWithString:relativeToURL:
  • Index(es):
    • Date
    • Thread