From 6840bff394c7e780ccd01e00731ca2ee30053fbd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Feb 2011 02:10:16 -0800 Subject: Minor code spacing and formatting bugs. --- UICaboodle/RVBook.h | 4 ++-- UICaboodle/RVBook.mm | 6 +++--- UICaboodle/RVPage.h | 10 +++++++--- 3 files changed, 12 insertions(+), 8 deletions(-) (limited to 'UICaboodle') 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 hook_; } -- (void) setHook:(id)hook; -@end +- (void) setHook:(id)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)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 -- cgit v1.2.3