diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-10-12 15:59:07 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-10-12 15:59:07 +0000 |
commit | 9fc4f973499e8d3bf327f699cd0e18d7e640a54d (patch) | |
tree | 9d190c8667790440b4743c6ac1331f9a9db112fb /Source/SPPreferenceController.m | |
parent | 29c40c62b9afa5eb3c61b8904b5213750bed558a (diff) | |
download | sequelpro-9fc4f973499e8d3bf327f699cd0e18d7e640a54d.tar.gz sequelpro-9fc4f973499e8d3bf327f699cd0e18d7e640a54d.tar.bz2 sequelpro-9fc4f973499e8d3bf327f699cd0e18d7e640a54d.zip |
• first steps to improve the general tooltip behaviour of 'ImageAndTextCell' class
• simplified the tooltip of Preference's Favorite List
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r-- | Source/SPPreferenceController.m | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index aed79610..36834616 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -29,7 +29,6 @@ #import "SPKeychain.h" #import "TableDocument.h" #import "SPConnectionController.h" -#import "SPTooltip.h" #define FAVORITES_PB_DRAG_TYPE @"SequelProPreferencesPasteboard" @@ -669,18 +668,6 @@ favoriteNameFieldWasTouched = YES; } -- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(SPFavoriteTextFieldCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation -{ - NSRect r = *rect; - // No tooltip if cellSize < controlSize - if([aCell cellSize].width < r.size.width-20) return nil; - - NSPoint pos = [NSEvent mouseLocation]; - pos.y -= 20; - [SPTooltip showWithObject:[NSString stringWithFormat:@"<span style='font-size:larger;'>%@</span><br><font color='darkgrey'>%@</font>", [aCell favoriteName], [aCell favoriteHost]] atLocation:pos ofType:@"html"]; - return nil; -} - #pragma mark - #pragma mark Toolbar delegate methods |