summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-23 02:49:30 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-23 02:49:30 -0800
commit8e3b68d4629fe84dd0cb0ee08c45d1037e8a0d3a (patch)
tree644080d512e61f03bad93ed5a404a6a628e50c7d /MobileCydia.mm
parented5566c758424fffb2204d93d93998d7fbc744b6 (diff)
Add cydia.scrollToBottom().
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 51843a7..948bb60 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4001,6 +4001,8 @@ static NSString *Warning_;
return @"refreshSources";
else if (selector == @selector(removeButton))
return @"removeButton";
+ else if (selector == @selector(scrollToBottom:))
+ return @"scrollToBottom";
else if (selector == @selector(setButtonImage:withStyle:toFunction:))
return @"setButtonImage";
else if (selector == @selector(setButtonTitle:withStyle:toFunction:))
@@ -4184,6 +4186,10 @@ static NSString *Warning_;
[indirect_ setPopupHook:function];
}
+- (void) scrollToBottom:(NSNumber *)animated {
+ [indirect_ performSelectorOnMainThread:@selector(scrollToBottomAnimated:) withObject:animated waitUntilDone:NO];
+}
+
- (void) setViewportWidth:(float)width {
[indirect_ setViewportWidthOnMainThread:width];
}