diff options
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 |