diff --git a/AppKit/_CPToolTip.j b/AppKit/_CPToolTip.j index c67bf4b4c..b0bfb1f9c 100644 --- a/AppKit/_CPToolTip.j +++ b/AppKit/_CPToolTip.j @@ -197,7 +197,7 @@ var _CPToolTipHeight = 24.0, - (void)showToolTip { var mousePosition = [[CPApp currentEvent] globalLocation], - nativeRect = [[[CPApp mainWindow] platformWindow] nativeContentRect]; + nativeRect = [[CPPlatformWindow primaryPlatformWindow] nativeContentRect]; mousePosition.y += 20;