summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-18 02:10:16 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-18 02:13:54 -0800
commit6840bff394c7e780ccd01e00731ca2ee30053fbd (patch)
treeccba431e2dc26bf4b4eef9bc0a4d8a6ab7fbb981 /UICaboodle
parent10d63f9ef457e1d3b0cd06ae6e3d5202310a07bb (diff)
Minor code spacing and formatting bugs.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/RVBook.h4
-rw-r--r--UICaboodle/RVBook.mm6
-rw-r--r--UICaboodle/RVPage.h10
3 files changed, 12 insertions, 8 deletions
diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h
index 1d06b0b..340db4d 100644
--- a/UICaboodle/RVBook.h
+++ b/UICaboodle/RVBook.h
@@ -9,7 +9,7 @@
@interface UCNavigationController : UINavigationController {
_transient id<HookProtocol> hook_;
}
-- (void) setHook:(id<HookProtocol>)hook;
-@end
+- (void) setHook:(id<HookProtocol>)hook;
+@end
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index 7fbbd5c..e714de0 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -12,17 +12,17 @@
#import "RVPage.h"
-
@implementation UCNavigationController
+
- (void) setHook:(id<HookProtocol>)hook {
hook_ = hook;
}
+
- (void) dismissModalViewControllerAnimated:(BOOL)animated {
[super dismissModalViewControllerAnimated:YES];
if (hook_ != nil)
[hook_ didDismissModalViewController];
}
-@end
-
+@end
diff --git a/UICaboodle/RVPage.h b/UICaboodle/RVPage.h
index 5d1346e..9e82ef2 100644
--- a/UICaboodle/RVPage.h
+++ b/UICaboodle/RVPage.h
@@ -14,19 +14,23 @@
// The default implementation of this method is essentially a no-op,
// but calling the superclass implementation is *required*.
- (void) reloadData;
+
// This URL is used to save the state of the view controller. Return
// nil if you cannot or should not save the URL for this page.
-- (NSURL *)navigationURL;
+- (NSURL *) navigationURL;
+
// By default, this delegate is unused. However, it's provided here in case
// you need some kind of delegate in a subclass.
- (void) setDelegate:(id)delegate;
-- (id)delegate;
+- (id) delegate;
+
// Override this in subclasses if you manage the "has seen first load" state yourself.
- (BOOL) hasLoaded;
+
// This is called when the view managed by the view controller is released.
// That is not always when the controller itself is released: it also can
// happen when more memory is needed by the system or whenever the controller
// just happens not to be visible.
- (void) releaseSubviews;
-@end
+@end