]> git.saurik.com Git - cydia.git/commitdiff
Just in case it is ever useful I finished webView:createWebViewWithRequest:.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 6 Nov 2010 03:44:05 +0000 (20:44 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 6 Nov 2010 03:44:05 +0000 (20:44 -0700)
UICaboodle/BrowserView.mm

index 4b8f14fb4645c1b94ee3c6f32e2c0f943aeb5de0..f2eb275be57ab5a9b1b47585cf77a006f5ed37ee 100644 (file)
@@ -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+) {{{