diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-26 01:56:33 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:23 -0800 |
commit | 8d497e2a4c6478859f08e5e0bb912256c0ca64b1 (patch) | |
tree | f67e563cdcb513aff216bce307c7baee1fbb62f1 /MobileCydia.mm | |
parent | 64d46af3a8176919d9d8601b3e8f1673ce8bb235 (diff) |
Add cydia.popViewController(animated).
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 49218cb..ad48ee5 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4234,6 +4234,8 @@ static NSMutableSet *Diversions_; return @"installPackages"; else if (selector == @selector(localizedStringForKey:value:table:)) return @"localize"; + else if (selector == @selector(popViewController:)) + return @"popViewController"; else if (selector == @selector(refreshSources)) return @"refreshSources"; else if (selector == @selector(removeButton)) @@ -4320,6 +4322,12 @@ static NSMutableSet *Diversions_; [delegate_ performSelectorOnMainThread:@selector(addCydiaHost:) withObject:host waitUntilDone:NO]; } +- (void) popViewController:(NSNumber *)value { + if (value == (id) [WebUndefined undefined]) + value = [NSNumber numberWithBool:YES]; + [indirect_ performSelectorOnMainThread:@selector(popViewControllerWithNumber:) withObject:value waitUntilDone:NO]; +} + - (void) addTrivialSource:(NSString *)href { [delegate_ performSelectorOnMainThread:@selector(addTrivialSource:) withObject:href waitUntilDone:NO]; } |