aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-19 14:35:03 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-19 14:35:03 +0000
commit42848b23d2f5f49ff753baa9816da32b5ddd9e6e (patch)
tree7dd1215155de2cc1e4344f9673bb0d6d99b6c7fd /Source/TableDocument.m
parentc8582f347c0536126d1066b5c5c6e69c0c91f522 (diff)
downloadsequelpro-42848b23d2f5f49ff753baa9816da32b5ddd9e6e.tar.gz
sequelpro-42848b23d2f5f49ff753baa9816da32b5ddd9e6e.tar.bz2
sequelpro-42848b23d2f5f49ff753baa9816da32b5ddd9e6e.zip
• added to TableContent.m:
- (NSArray * )currentDataResult -- like currentResult but returns "BLOB" for blob data and a base64 encoded string for images à la <IMG SRC="data:image/auto;base64,"> - (NSString * ) base64EncodingOfData:(NSData * )data withLineLength:(unsigned int)lineLength -- it returns a base64 encoded string of data • changed: currentDataResult is now called for printing from the Table Content Browser
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index f98a2c1c..52dbc229 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -225,7 +225,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
else if ( [tableTabView indexOfTabViewItem:[tableTabView selectedTabViewItem]] == 1 ){
if([[tableContentInstance currentResult] count] > 1)
rows = [[NSArray alloc] initWithArray:
- [[tableContentInstance currentResult] objectsAtIndexes:
+ [[tableContentInstance currentDataResult] objectsAtIndexes:
[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, [[tableContentInstance currentResult] count]-1)]
]
];