@interface CyteListController : CyteViewController
+- (id) initWithTitle:(NSString *)title;
+
- (bool) shouldYield;
- (void) loadView;
- (void) _reloadData;
[self deselectWithAnimation:animated];
}
+- (id) initWithTitle:(NSString *)title {
+ if ((self = [super init]) != nil) {
+ [[self navigationItem] setTitle:title];
+ } return self;
+}
+
- (void) releaseSubviews {
list_ = nil;
[super releaseSubviews];
_H<NSArray> thumbs_;
std::vector<NSInteger> offset_;
- _H<NSString> title_;
unsigned reloading_;
}
}
- (id) initWithDatabase:(Database *)database title:(NSString *)title {
- if ((self = [super init]) != nil) {
+ if ((self = [super initWithTitle:title]) != nil) {
database_ = database;
- title_ = [title copy];
- [[self navigationItem] setTitle:title_];
} return self;
}