X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/3bd1c2a2a065f381047db7201797be94f19e4c6c..12b59862f7a47c1608644aa8d6e44a3bd0efdf61:/UICaboodle/RVBook.mm?ds=sidebyside 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