The repository is owned by the window controller now, and PBWebGitController shouldn't need to use the ApplicationController

This commit is contained in:
Ciarán Walsh
2008-08-18 18:16:43 +01:00
parent d8dd74c59b
commit 7813dbfe54
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -13,7 +13,6 @@
#import <WebKit/WebKit.h>
@interface PBWebGitController : NSObject {
IBOutlet ApplicationController* controller;
IBOutlet WebView* view;
IBOutlet PBDetailController* detailController;
NSString* currentSha;
+1 -1
View File
@@ -65,7 +65,7 @@
- (void) selectCommit: (NSString*) sha
{
NSPredicate* selection = [NSPredicate predicateWithFormat:@"sha == %@", sha];
NSArray* selectedCommits = [controller.repository.revisionList.commits filteredArrayUsingPredicate:selection];
NSArray* selectedCommits = [detailController.repository.revisionList.commits filteredArrayUsingPredicate:selection];
// TODO: reimplement this. How can we set the new commit? Our detailscontroller is read-only
}