delegate_ = delegate;
}
+- (void) setHook:(id)hook {
+ hook_ = hook;
+}
+
- (void) setPage:(RVPage *)page {
if ([pages_ count] != 0)
[[pages_ lastObject] setPageActive:NO];
}
- (void) close {
+ if (hook_ != nil)
+ [hook_ didCloseBook:self];
}
@end
- (void) close {
[self popFromSuperviewAnimated:YES];
+ [super close];
}
@end