Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLProtocol canonicalRequestForRequest problem



I wrote an app called Chamonix a while ago. It is a viewer for Microsoft CHM files. It works fine if you have the WebKit that ships with Safari 2.x, but stops working if you install 3 beta. The problem is that the pages don't load. Debugging reveals that NSURLProtocol canonicalRequestForRequest is being called all the time, but it never gets round to loading anything. My implementation of canonicalRequestForRequest takes the URLRequest passed to it, and ensures that the URL begins with 'ms-its:///'.

When I say that canonicalRequestForRequest is being called all the time, I mean it. If I load a CHM file and get an empty window then stick a breakpoint in canonicalRequestForRequest, it immediately halts. Continuing results in the breakpoint being hit again, and again, and again...

The source is here: http://sourceforge.net/projects/chamonix/, and the events I describe above are occuring in ChmProtocol.m. Does anyone know what might have changed that's broken my app?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.