diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 22:57:11 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 22:57:11 +0000 |
commit | 44548eed4c7e103ced2c9e87bd056fe59fedf617 (patch) | |
tree | 328846e4d0666a82bf608ca09147d489f6d4d599 /Source/SPTextAndLinkCell.m | |
parent | 8f82f023c394be8bba83c53e1ceeb3bbaf54e41d (diff) | |
download | sequelpro-44548eed4c7e103ced2c9e87bd056fe59fedf617.tar.gz sequelpro-44548eed4c7e103ced2c9e87bd056fe59fedf617.tar.bz2 sequelpro-44548eed4c7e103ced2c9e87bd056fe59fedf617.zip |
• added SPTooltips for cell content in Content Table
- text strings are display with line breaks and tabs
- if cell content represents image data display that image as transparent thumbnail (by using base64 encoded HTML img tag)
Notes:
- SPTooltip implementation to show an image via a NSImageView will be implemented soon (the HTML way needs too much memory due to base64 encoded string)
- to discuss: Should we add a preference setting to display these tooltips?
Diffstat (limited to 'Source/SPTextAndLinkCell.m')
-rw-r--r-- | Source/SPTextAndLinkCell.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPTextAndLinkCell.m b/Source/SPTextAndLinkCell.m index eee3f517..90012fa9 100644 --- a/Source/SPTextAndLinkCell.m +++ b/Source/SPTextAndLinkCell.m @@ -264,4 +264,12 @@ static inline NSRect SPTextLinkRectFromCellRect(NSRect inRect) { return lastLinkRow; } +/** + * Suppress the built-in expansion tooltip + */ +- (NSRect)expansionFrameWithFrame:(NSRect)cellFrame inView:(NSView *)view +{ + return NSZeroRect; +} + @end |