summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-03-07 10:20:10 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:50 +0000
commit12b59862f7a47c1608644aa8d6e44a3bd0efdf61 (patch)
tree33aed12d0c6fa3ff05f6ecf98d627398c3e70fd5 /UICaboodle/RVBook.mm
parent3bd1c2a2a065f381047db7201797be94f19e4c6c (diff)
My god his is taking me forever.
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r--UICaboodle/RVBook.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index d7a3949..28774ae 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