diff --git a/PBGitCommitController.h b/PBGitCommitController.h
index d5fd0b8..4e6ddd8 100644
--- a/PBGitCommitController.h
+++ b/PBGitCommitController.h
@@ -14,6 +14,9 @@
IBOutlet NSArrayController *unstagedFilesController;
IBOutlet NSArrayController *cachedFilesController;
+
+ IBOutlet NSButtonCell* unstagedButtonCell;
+ IBOutlet NSButtonCell* cachedButtonCell;
}
@property (retain) NSMutableArray *files;
diff --git a/PBGitCommitController.m b/PBGitCommitController.m
index 19cad2e..e869d5c 100644
--- a/PBGitCommitController.m
+++ b/PBGitCommitController.m
@@ -18,6 +18,9 @@
{
[unstagedFilesController setFilterPredicate:[NSPredicate predicateWithFormat:@"cached == 0"]];
[cachedFilesController setFilterPredicate:[NSPredicate predicateWithFormat:@"cached == 1"]];
+ [unstagedButtonCell setAction:@selector(cellClicked:)];
+ [cachedButtonCell setAction:@selector(cellClicked:)];
+
[self refresh:self];
}
diff --git a/PBGitCommitView.xib b/PBGitCommitView.xib
index cca034f..a8eb0a2 100644
--- a/PBGitCommitView.xib
+++ b/PBGitCommitView.xib
@@ -8,7 +8,7 @@
352.00
-
@@ -1537,7 +1585,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA
- 162
+ 167
@@ -1597,6 +1645,34 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA
+
+ YES
+
+ PBGitCommitController
+ PBViewController
+
+ YES
+
+ YES
+ cachedButtonCell
+ cachedFilesController
+ unstagedButtonCell
+ unstagedFilesController
+
+
+ YES
+ NSButtonCell
+ NSArrayController
+ NSButtonCell
+ NSArrayController
+
+
+
+ IBDocumentRelativeSource
+ PBGitCommitController.h
+
+
+
0
GitX.xcodeproj