diff options
author | Max <post@wickenrode.com> | 2015-11-10 16:13:43 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-11-10 16:13:43 +0100 |
commit | 2059dfa31eb3d9b629a9734c316984bd8afb3915 (patch) | |
tree | bd92065eb9156c572558cf3c6756e179abe048c4 /Source/SPTooltip.m | |
parent | fdef91b45a56b2f94aa477041b8f4185a2e7e7e2 (diff) | |
download | sequelpro-2059dfa31eb3d9b629a9734c316984bd8afb3915.tar.gz sequelpro-2059dfa31eb3d9b629a9734c316984bd8afb3915.tar.bz2 sequelpro-2059dfa31eb3d9b629a9734c316984bd8afb3915.zip |
Add a "tooltip" when picking a column type in structure view, explaining basic properties of the type (part of #1090)
This is mostly to help users understand what "Length" actually does for *INT types.
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r-- | Source/SPTooltip.m | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m index eefa7520..54a997f6 100644 --- a/Source/SPTooltip.m +++ b/Source/SPTooltip.m @@ -317,16 +317,7 @@ static CGFloat slow_in_out (CGFloat t) NSPoint pos = NSMakePoint([self frame].origin.x, [self frame].origin.y + [self frame].size.height); // Find the screen which we are displaying on - NSRect screenFrame = [[NSScreen mainScreen] frame]; - NSScreen* candidate; - for(candidate in [NSScreen screens]) - { - NSRect cf = [candidate frame]; - if(NSPointInRect(pos,cf)) { - screenFrame = cf; - break; - } - } + NSRect screenFrame = [NSScreen rectOfScreenAtPoint:pos]; // is contentView a webView calculate actual rendered size via JavaScript if([[[[self contentView] class] description] isEqualToString:@"WebView"]) { |