]> git.saurik.com Git - cydia.git/commitdiff
Add initWithRequest: to CyteWebViewController.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 23:31:51 +0000 (16:31 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 23:31:51 +0000 (16:31 -0700)
CyteKit/WebViewController.h
CyteKit/WebViewController.mm

index 8798803ea04c9afcc2df253521d3ae14b0e07932..cb9af9792f3bdcfd25743233afb6e8390e54207e 100644 (file)
 - (void) reloadURL;
 
 - (id) init;
+
 - (id) initWithURL:(NSURL *)url;
+- (id) initWithRequest:(NSURLRequest *)request;
+
 - (id) initWithWidth:(float)width;
 - (id) initWithWidth:(float)width ofClass:(Class)_class;
 
index a38a8d0e089beea63ba67710e053c482e8db00a0..3e77a518abfa667203c3c081ed204ad5b26823ee 100644 (file)
@@ -939,6 +939,12 @@ float CYScrollViewDecelerationRateNormal;
     } return self;
 }
 
+- (id) initWithRequest:(NSURLRequest *)request {
+    if ((self = [self init]) != nil) {
+        [self setRequest:request];
+    } return self;
+}
+
 - (void) callFunction:(WebScriptObject *)function {
     WebThreadLocked lock;