Re: Maintaining NSCursor outside of app window
Re: Maintaining NSCursor outside of app window
- Subject: Re: Maintaining NSCursor outside of app window
- From: Uli Kusterer <email@hidden>
- Date: Fri, 14 Jan 2011 10:00:24 +0100
On 14.01.2011, at 01:37, Corbin Dunn wrote:
> - (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint
>
> Then do something like this (after converting the screen point to window coords):
>
> NSPoint windowPoint = [[view window] mouseLocationOutsideOfEventStream];
> NSPoint localPoint = [view convertPoint:windowPoint fromView:nil];
The OS will be very disappointed if it hands you a screenPoint and you just completely ignore it and use mouseLocationOutsideOfEventStream instead. Due to lag, CPU load etc. It sounds like a better idea to use the parameter.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden