Update views when switching

This commit is contained in:
Pieter de Bie
2008-12-22 20:47:36 +01:00
parent da89f38546
commit cd4ee1b993
5 changed files with 22 additions and 0 deletions
+5
View File
@@ -112,6 +112,11 @@
self.files = files;
}
- (void) updateView
{
[self refresh:nil];
}
- (void) doneProcessingIndex
{
if (!--self.busy)
+5
View File
@@ -173,6 +173,11 @@
[repository.revisionList reload];
}
- (void) updateView
{
[self refresh:nil];
}
- (void) selectCommit: (NSString*) commit
{
NSPredicate* selection = [NSPredicate predicateWithFormat:@"realSha == %@", commit];
+5
View File
@@ -60,11 +60,16 @@
case 0: // swap in the "CustomImageViewController - NSImageView"
if (!historyViewController)
historyViewController = [[PBGitHistoryController alloc] initWithRepository:repository superController:self];
else
[historyViewController updateView];
viewController = historyViewController;
break;
case 1:
if (!commitViewController)
commitViewController = [[PBGitCommitController alloc] initWithRepository:repository superController:self];
else
[commitViewController updateView];
viewController = commitViewController;
break;
}
+1
View File
@@ -22,4 +22,5 @@
- (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller;
- (void) removeView;
- (void) updateView;
@end
+6
View File
@@ -34,4 +34,10 @@
- (void) awakeFromNib
{
}
// This is called when the view is displayed again; it
// should be updated to show the most recent information
- (void) updateView
{
}
@end