aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-20 15:20:31 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-20 15:20:31 +0000
commitd892dfadf2a9afcd7ad751c41d48ea126644fbe4 (patch)
tree749400c5ac6e13a45e73ad069af492ea76cc8b08 /Source/CustomQuery.m
parent264035f847d3f5fef8d2f56a2e18f48c6df4d316 (diff)
downloadsequelpro-d892dfadf2a9afcd7ad751c41d48ea126644fbe4.tar.gz
sequelpro-d892dfadf2a9afcd7ad751c41d48ea126644fbe4.tar.bz2
sequelpro-d892dfadf2a9afcd7ad751c41d48ea126644fbe4.zip
• quick fix - disabled tooltips in Content and Query tables due to crashes
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m62
1 files changed, 31 insertions, 31 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index faa86221..a45cc972 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -1693,37 +1693,37 @@
* - if blob data can be interpret as image data display the image as transparent thumbnail
* (up to now using base64 encoded HTML data)
*/
-- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(SPTextAndLinkCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
-{
-
-
- NSImage *image;
-
- if([[aCell stringValue] length] < 1) return nil;
-
- NSPoint pos = [NSEvent mouseLocation];
- pos.y -= 20;
-
- // Get the original data for trying to display the blob data as an image
- id theValue = NSArrayObjectAtIndex(NSArrayObjectAtIndex(fullResult, row), [[aTableColumn identifier] intValue]);
- if ([theValue isKindOfClass:[NSData class]]) {
- image = [[NSImage alloc] initWithData:theValue];
- if(image) {
- [SPTooltip showWithObject:image atLocation:pos ofType:@"image"];
- [image release];
- theValue = nil;
- return nil;
- }
- }
-
- if(image) [image release];
-
- // Show the cell string value as tooltip (including line breaks and tabs)
- if([[aCell stringValue] length] > 1)
- [SPTooltip showWithObject:[aCell stringValue] atLocation:pos];
-
- return nil;
-}
+// - (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(SPTextAndLinkCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
+// {
+//
+//
+// NSImage *image;
+//
+// if([[aCell stringValue] length] < 1) return nil;
+//
+// NSPoint pos = [NSEvent mouseLocation];
+// pos.y -= 20;
+//
+// // Get the original data for trying to display the blob data as an image
+// id theValue = NSArrayObjectAtIndex(NSArrayObjectAtIndex(fullResult, row), [[aTableColumn identifier] intValue]);
+// if ([theValue isKindOfClass:[NSData class]]) {
+// image = [[NSImage alloc] initWithData:theValue];
+// if(image) {
+// [SPTooltip showWithObject:image atLocation:pos ofType:@"image"];
+// [image release];
+// theValue = nil;
+// return nil;
+// }
+// }
+//
+// if(image) [image release];
+//
+// // Show the cell string value as tooltip (including line breaks and tabs)
+// if([[aCell stringValue] length] > 1)
+// [SPTooltip showWithObject:[aCell stringValue] atLocation:pos];
+//
+// return nil;
+// }
/*