mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
The repository is owned by the window controller now, and PBWebGitController shouldn't need to use the ApplicationController
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface PBWebGitController : NSObject {
|
||||
IBOutlet ApplicationController* controller;
|
||||
IBOutlet WebView* view;
|
||||
IBOutlet PBDetailController* detailController;
|
||||
NSString* currentSha;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user