]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVBook.mm
My god his is taking me forever.
[cydia.git] / UICaboodle / RVBook.mm
index d7a39490cdc1eebb45a33a8a9e872bb321345d93..28774ae3ac3d31e57fa7bc5573df3c7c88e3c89f 100644 (file)
     delegate_ = delegate;
 }
 
     delegate_ = delegate;
 }
 
+- (void) setHook:(id)hook {
+    hook_ = hook;
+}
+
 - (void) setPage:(RVPage *)page {
     if ([pages_ count] != 0)
         [[pages_ lastObject] setPageActive:NO];
 - (void) setPage:(RVPage *)page {
     if ([pages_ count] != 0)
         [[pages_ lastObject] setPageActive:NO];
 }
 
 - (void) close {
 }
 
 - (void) close {
+    if (hook_ != nil)
+        [hook_ didCloseBook:self];
 }
 
 @end
 }
 
 @end
 
 - (void) close {
     [self popFromSuperviewAnimated:YES];
 
 - (void) close {
     [self popFromSuperviewAnimated:YES];
+    [super close];
 }
 
 @end
 }
 
 @end