aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-17 21:46:35 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-17 21:46:35 +0000
commit2bb0262375af1ca9a0a31943e1982b2b3cb7ae56 (patch)
treef140d93c8674fa3658e168e057b070143a2795cc /Source/SPConnectionControllerDelegate.m
parent2f1146de80e658021e6a0fc63a20b039f73cca06 (diff)
parent072a730f22e3c06fed48acf31ac5708259c93a32 (diff)
downloadsequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.tar.gz
sequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.tar.bz2
sequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.zip
Bring outline view branch up to date with trunk (r3030:3035).
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 6ad83963..9e63a547 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -28,6 +28,8 @@
#import "SPFavoriteNode.h"
#import "SPGroupNode.h"
+#define CELL(cell) (SPTableTextFieldCell *)cell
+
@implementation SPConnectionController (SPConnectionControllerDelegate)
#pragma mark -
@@ -159,15 +161,15 @@
{
SPTreeNode *node = (SPTreeNode *)item;
- [(SPTableTextFieldCell *)cell setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
+ [CELL(cell) setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
- [(SPTableTextFieldCell *)cell setTextColor:([favoritesOutlineView isEnabled]) ? [NSColor blackColor] : [NSColor grayColor]];
+ [CELL(cell) setTextColor:([favoritesOutlineView isEnabled]) ? [NSColor blackColor] : [NSColor grayColor]];
if (![[node parentNode] parentNode]) {
- [(SPTableTextFieldCell *)cell setImage:nil];
+ [CELL(cell) setImage:nil];
}
else {
- [(SPTableTextFieldCell *)cell setImage:(![node isGroup]) ? [NSImage imageNamed:@"database-small"] : folderImage];
+ [CELL(cell) setImage:(![node isGroup]) ? [NSImage imageNamed:@"database-small"] : folderImage];
}
}