BOOL hasSentFirstLoad_;
}
-- (id) initWithDatabase:(Database *)database delegate:(id)delegate;
-- (void) reloadData;
+- (id) initWithDatabase:(Database *)database;
@end
- (NSString *) title { return UCLocalize("CHANGES"); }
-- (id) initWithDatabase:(Database *)database delegate:(id)delegate {
+- (id) initWithDatabase:(Database *)database {
if ((self = [super init]) != nil) {
database_ = database;
[[self navigationItem] setTitle:UCLocalize("CHANGES")];
packages_ = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);
-
sections_ = [[NSMutableArray arrayWithCapacity:16] retain];
list_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain];
[list_ setDataSource:self];
[list_ setDelegate:self];
-
- delegate_ = delegate;
} return self;
}
else if (index == 1)
root = [[[SectionsController alloc] initWithDatabase:database_] autorelease];
else if (index == 2)
- root = [[[ChangesController alloc] initWithDatabase:database_ delegate:self] autorelease];
+ root = [[[ChangesController alloc] initWithDatabase:database_] autorelease];
if (IsWildcat_) {
if (index == 3)
}
if ([base isEqualToString:@"changes"]) {
- controller = [[[ChangesController alloc] initWithDatabase:database_ delegate:self] autorelease];
+ controller = [[[ChangesController alloc] initWithDatabase:database_] autorelease];
}
if ([base isEqualToString:@"installed"]) {