/* Cydia Navigation Controller Interface {{{ */
@interface CYNavigationController : UINavigationController {
- _transient Database *database_;
_transient id<UINavigationControllerDelegate> delegate_;
}
- (NSArray *) navigationURLCollection;
-- (id) initWithDatabase:(Database *)database;
- (void) unloadData:(BOOL)selected;
@end
delegate_ = delegate;
}
-- (id) initWithDatabase:(Database *)database {
- if ((self = [super init]) != nil) {
- database_ = database;
- } return self;
-}
-
@end
/* }}} */
NSMutableArray *controllers([NSMutableArray array]);
for (UITabBarItem *item in items) {
- CYNavigationController *controller([[[CYNavigationController alloc] initWithDatabase:database_] autorelease]);
+ CYNavigationController *controller([[[CYNavigationController alloc] init] autorelease]);
[controller setTabBarItem:item];
[controllers addObject:controller];
}