aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-23 10:17:37 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-23 10:17:37 +0000
commit7b9852ea31e5a070a1f862f42f21c53423a3fb9b (patch)
tree36043a78e78d192db5b077b1f88d83c103978426 /Source/CustomQuery.m
parent68e0fe10f057729f494af0ee7afa681dd7154675 (diff)
downloadsequelpro-7b9852ea31e5a070a1f862f42f21c53423a3fb9b.tar.gz
sequelpro-7b9852ea31e5a070a1f862f42f21c53423a3fb9b.tar.bz2
sequelpro-7b9852ea31e5a070a1f862f42f21c53423a3fb9b.zip
• added SPDataCellFormatter to data cells of the Custom Query table
• in Content Browser send only the first 255 bytes to the cell formatter (makes it a tick faster) • fixed for editing in Content Browser if row contains binary blob data: - use = instead of LIKE operator in UPDATE statement - binary data will converted into X'...' representation
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 78ee1d80..ac2d08c7 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -29,6 +29,7 @@
#import "SPStringAdditions.h"
#import "SPTextViewAdditions.h"
#import "SPArrayAdditions.h"
+#import "SPDataCellFormatter.h"
#import "TableDocument.h"
#import "TablesList.h"
#import "RegexKitLite.h"
@@ -668,6 +669,7 @@
[theCol setResizingMask:NSTableColumnUserResizingMask];
NSTextFieldCell *dataCell = [[[NSTextFieldCell alloc] initTextCell:@""] autorelease];
[dataCell setEditable:YES];
+ [dataCell setFormatter:[[SPDataCellFormatter new] autorelease]];
if ( [prefs boolForKey:@"UseMonospacedFonts"] ) {
[dataCell setFont:[NSFont fontWithName:@"Monaco" size:10]];
} else {