aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-10 16:13:43 +0100
committerMax <post@wickenrode.com>2015-11-10 16:13:43 +0100
commit2059dfa31eb3d9b629a9734c316984bd8afb3915 (patch)
treebd92065eb9156c572558cf3c6756e179abe048c4 /Source/SPTooltip.m
parentfdef91b45a56b2f94aa477041b8f4185a2e7e7e2 (diff)
downloadsequelpro-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.m11
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"]) {