return proposed;
else {
_assert(size_t(row) < [fields_ count]);
- fprintf(stderr, "%f\n", [[[fields_ allValues] objectAtIndex:row] contentSize].height);
return [[[fields_ allValues] objectAtIndex:row] contentSize].height;
}
}
}
_assert(pkgDistUpgrade(cache_));
-
- //InstallPackages(cache_, true);
}
- (void) setDelegate:(id)delegate {
@interface UpgradeView : PackagesView {
}
+- (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button;
+
- (NSString *) title;
- (NSString *) leftTitle;
- (void) addPackage:(Package *)package;
@implementation UpgradeView
+- (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button {
+ if (button != 1)
+ [super navigationBar:navbar buttonClicked:button];
+ else {
+ [database_ upgrade];
+ [delegate_ perform];
+ }
+}
+
- (NSString *) title {
return @"Upgrade";
}