diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-30 04:59:47 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:07:35 +0000 |
commit | 308c03802400d5679ec355e577f09bd0e86bfcd9 (patch) | |
tree | 626ef998c47ebbe33e0768293fd0da57b3e922d6 /UICaboodle/RVPage.mm | |
parent | 7e9a36b640f18febaa4d1beeda6e0f55749cd2b2 (diff) |
Factored out common code to common subproject.
Diffstat (limited to 'UICaboodle/RVPage.mm')
-rw-r--r-- | UICaboodle/RVPage.mm | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm new file mode 100644 index 0000000..a92058e --- /dev/null +++ b/UICaboodle/RVPage.mm @@ -0,0 +1,71 @@ +#import "RVPage.h" + +#import <Foundation/Foundation.h> +#import <UIKit/UIView.h> + +#import "RVBook.h" + +@implementation RVPage + +- (NSString *) title { + [self doesNotRecognizeSelector:_cmd]; + return nil; +} + +- (NSString *) backButtonTitle { + return nil; +} + +- (NSString *) leftButtonTitle { + return nil; +} + +- (NSString *) rightButtonTitle { + return nil; +} + +- (void) _rightButtonClicked { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void) _leftButtonClicked { + [self doesNotRecognizeSelector:_cmd]; +} + +- (UIView *) accessoryView { + return nil; +} + +- (void) setPageActive:(BOOL)active { +} + +- (void) resetViewAnimated:(BOOL)animated { + [self doesNotRecognizeSelector:_cmd]; +} + +- (void) setTitle:(NSString *)title { + [book_ setTitle:title forPage:self]; +} + +- (void) setBackButtonTitle:(NSString *)title { + [book_ setBackButtonTitle:title forPage:self]; +} + +- (void) reloadButtons { + [book_ reloadButtonsForPage:self]; +} + +- (void) reloadData { +} + +- (id) initWithBook:(RVBook *)book { + if ((self = [super initWithFrame:[book pageBounds]]) != nil) { + book_ = book; + } return self; +} + +- (void) setDelegate:(id)delegate { + delegate_ = delegate; +} + +@end |