From 158ceb78b7d7538b332a095ee3da4cc70f64d2a1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 21 Apr 2009 07:53:14 +0000 Subject: [PATCH] Release mode, and button reloading. --- Cydia.mm | 2 +- UICaboodle/RVBook.h | 1 + UICaboodle/RVBook.mm | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Cydia.mm b/Cydia.mm index 9962b655..29c4df3f 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -403,7 +403,7 @@ extern NSString * const kCAFilterNearest; #define lprintf(args...) fprintf(stderr, args) -#define ForRelease 0 +#define ForRelease 1 #define TraceLogging (1 && !ForRelease) #define HistogramInsertionSort (0 && !ForRelease) #define ProfileTimes (0 && !ForRelease) diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h index d0037cf0..ff42c5a8 100644 --- a/UICaboodle/RVBook.h +++ b/UICaboodle/RVBook.h @@ -63,6 +63,7 @@ - (void) reloadButtonsForPage:(RVPage *)page; - (NSString *) getTitleForPage:(RVPage *)page; +- (void) reloadButtons; - (void) reloadData; - (CGRect) pageBounds; diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 29e9513b..7812a249 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -282,6 +282,14 @@ } } +- (void) reloadButtons { + size_t count([pages_ count]); + if (count != 0) { + RVPage *page([pages_ lastObject]); + [self reloadButtonsForPage:page]; + } +} + - (CGRect) pageBounds { return [transition_ bounds]; } -- 2.45.2