Re: Weird behavior of mouse location when performing a drag
Re: Weird behavior of mouse location when performing a drag
- Subject: Re: Weird behavior of mouse location when performing a drag
- From: Graham Cox <email@hidden>
- Date: Tue, 9 Dec 2008 09:48:34 +1100
On 9 Dec 2008, at 4:56 am, Gustavo Pizano wrote:
- (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender
{
NSPoint converted = [NSEvent mouseLocation];
You should use the information you're given, where possible:
NSPoint location = [sender draggingLocation];
In this case you are supplied the appropriate point in the dragging
info, there's no need to "go outside" to get it from somewhere else.
hth,
Graham
_______________________________________________
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