Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
whoops, don't use 10.7-only api
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Dec 17, 2011
1 parent 9a5a457 commit 7143d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/UIKit/TUINSView+NSTextInputClient.m
Expand Up @@ -97,7 +97,8 @@ - (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer
NSRect windowRelativeRect = [_tempTextRendererForTextInputClient.view.nsView convertRect:vf toView:nil];
// NSLog(@"windowRelativeRect = %@", NSStringFromRect(windowRelativeRect));

NSRect screenRect = [_tempTextRendererForTextInputClient.view.nsWindow convertRectToScreen:windowRelativeRect];
NSRect screenRect = windowRelativeRect;
screenRect.origin = [_tempTextRendererForTextInputClient.view.nsWindow convertBaseToScreen:windowRelativeRect.origin];

ret = screenRect;

Expand Down

0 comments on commit 7143d88

Please sign in to comment.