From 14bd0cf3680e261b979be98e792bafc5e8e1afd5 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 3 Aug 2009 16:06:28 +0000 Subject: When blob/text fields are loaded on demand also color them light gray if they are actually NULL. --- Source/TableContent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TableContent.m b/Source/TableContent.m index 08f0aafb..18cd8e78 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1909,7 +1909,7 @@ // Change the text color back to black // This is necessary because NSTableView reuses // the NSCell to draw further rows in the column - [cell setTextColor:[NSColor blackColor]]; + [cell setTextColor:([[cell stringValue] isEqualToString:[prefs objectForKey:@"NullValue"]] && [[column objectForKey:@"null"] boolValue]) ? [NSColor lightGrayColor] : [NSColor blackColor]]; } } } -- cgit v1.2.3