From 7813dbfe54ccda7baf8afacd875977d799d74a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Walsh?= Date: Mon, 18 Aug 2008 18:16:43 +0100 Subject: [PATCH] The repository is owned by the window controller now, and PBWebGitController shouldn't need to use the ApplicationController --- PBWebGitController.h | 1 - PBWebGitController.m | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PBWebGitController.h b/PBWebGitController.h index ebc368d..e59fa4f 100644 --- a/PBWebGitController.h +++ b/PBWebGitController.h @@ -13,7 +13,6 @@ #import @interface PBWebGitController : NSObject { - IBOutlet ApplicationController* controller; IBOutlet WebView* view; IBOutlet PBDetailController* detailController; NSString* currentSha; diff --git a/PBWebGitController.m b/PBWebGitController.m index 89dcb21..a6a5d80 100644 --- a/PBWebGitController.m +++ b/PBWebGitController.m @@ -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 }