]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVBook.mm
Check respondsToSelector: for CYWebViewDelegate::JavaScript*Panel.
[cydia.git] / UICaboodle / RVBook.mm
index 2271cee78f6806156c1b557a9f8d7a3146c8b95a..7fbbd5c3c7bc5cc2ee22023009ae6580a099d0f3 100644 (file)
@@ -1,12 +1,6 @@
 #import "RVBook.h"
 
-#import <UIKit/UINavigationBar.h>
-#import <UIKit/UINavigationItem.h>
-
-#import <UIKit/UITransitionView.h>
-
-#import <UIKit/UIView-Geometry.h>
-#import <UIKit/UIView-Hierarchy.h>
+#import <UIKit/UIKit.h>
 
 #import <Foundation/Foundation.h>
 #import <CoreGraphics/CGGeometry.h>
 
 
 @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