summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-05 20:44:05 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-05 20:44:05 -0700
commit7880ff9094d67ac70187b37c945f4104791eec6e (patch)
treeb0dc7026c0c3d8f602ebd9c278ec2d9ca9c09fb5 /UICaboodle
parent3a1ff6090f4abc8599e028318f63f59d8645c58a (diff)
Just in case it is ever useful I finished webView:createWebViewWithRequest:.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 4b8f14f..f2eb275 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -211,12 +211,13 @@ enum CYWebPolicyDecision {
}
/*- (WebView *) webView:(WebView *)view createWebViewWithRequest:(NSURLRequest *)request {
- NSLog(@"createWebViewWithRequest:%@", request);
- WebView *created(nil); // XXX
+ id<CYWebViewDelegate> delegate([self delegate]);
+ WebView *created(nil);
+ if (created == nil && [delegate respondsToSelector:@selector(webView:createWebViewWithRequest:)])
+ created = [delegate webView:view createWebViewWithRequest:request];
if (created == nil && [UIWebView instancesRespondToSelector:@selector(webView:createWebViewWithRequest:)])
- return [super webView:view createWebViewWithRequest:request];
- else
- return created;
+ created = [super webView:view createWebViewWithRequest:request];
+ return created;
}*/
// webView:decidePolicyForNavigationAction:request:frame:decisionListener: (2.0+) {{{