Mailing Lists: Apple Mailing Lists

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

WebView resource loading



Hi again,

Another question for everyone here... I would like to manually handle the loading of all the resources in my WebView.  Right now, I'm creating an NSURLConnection and pulling the data into an NSData blob and then handing that buffer to the WebView and telling it to load that as the main page, but all of the other resources on that page (i.e. images, _javascript_s, css) are then loaded by the WebView automatically.  I can set my self as a WebResourceLoadDelegate and use webView:resource:willSendRequest:redirectResponse:fromDataSource: to let me know when something is about to be loaded and create my custom NSURLConnection, but how do I hand back a data buffer to the frame and tell it, this is the data for the resource it just requested?  Is there a way to do this?

Thanks again.
-Mike

 _______________________________________________
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.