X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d8d9a65cd4a5c345be8b749a1277861a49790158..1ce016d4bdc5917ade93fe12291410cbf54cdb6c:/UICaboodle/RVBook.mm diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index d7a39490..28774ae3 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -121,6 +121,10 @@ delegate_ = delegate; } +- (void) setHook:(id)hook { + hook_ = hook; +} + - (void) setPage:(RVPage *)page { if ([pages_ count] != 0) [[pages_ lastObject] setPageActive:NO]; @@ -277,6 +281,8 @@ } - (void) close { + if (hook_ != nil) + [hook_ didCloseBook:self]; } @end @@ -300,6 +306,7 @@ - (void) close { [self popFromSuperviewAnimated:YES]; + [super close]; } @end