summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-14 01:10:41 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-14 01:10:41 -0800
commiteb09425a76cb1fdd9f09a00e43e760f952800cc6 (patch)
tree5374ceaae443c20623da0582f8b91a18dbf654e7 /MobileCydia.mm
parent7b3f9d6e5f4471e8e56120e7b7b5132dfd88063f (diff)
Implement chpwn's lazy-loading API for BrowserController.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index aae8dd5..5f6fb36 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8894,8 +8894,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if ([base isEqualToString:@"url"]) {
// This kind of URL can contain slashes in the argument, so we can't parse them below.
NSString *destination = [[url absoluteString] substringFromIndex:([scheme length] + [@"://" length] + [base length] + [@"/" length])];
- controller = [[[CYBrowserController alloc] init] autorelease];
- [(CYBrowserController *)controller loadURL:[NSURL URLWithString:destination]];
+ controller = [[[CYBrowserController alloc] initWithURL:[NSURL URLWithString:destination]] autorelease];
} else if ([components count] == 1) {
if ([base isEqualToString:@"manage"]) {
controller = [[[ManageController alloc] init] autorelease];