@implementation UCNavigationController
-- (void) setHook:(id)hook {
- hook_ = hook;
+- (void) setHook:(id<HookProtocol>)hook {
+ hook_ = hook;
}
- (void) dismissModalViewControllerAnimated:(BOOL)animated {
- [super dismissModalViewControllerAnimated:YES];
+ [super dismissModalViewControllerAnimated:YES];
- if (hook_ != nil)
- [hook_ didDismissModalViewController];
+ if (hook_ != nil)
+ [hook_ didDismissModalViewController];
}
@end