Re: Weird behavior of mouse location when performing a drag

2008-12-10 Thread chaitanya pandit
Try this, NSPoint apoint = [self convertPoint:[sender draggedImageLocation] fromView:nil]; HTH, Chaitanya On 08-Dec-08, at 11:26 PM, Gustavo Pizano wrote: Hello all. Well Im performing a drag-ndrop between views of the same app, I implemented the - (NSDragOperation)draggingUpdated:(id <

Re: Weird behavior of mouse location when performing a drag

2008-12-08 Thread Graham Cox
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

Re: Weird behavior of mouse location when performing a drag

2008-12-08 Thread Rob Keniger
On 09/12/2008, at 3:56 AM, Gustavo Pizano wrote: Well Im performing a drag-ndrop between views of the same app, I implemented the - (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender method, because I need to know the location of the mouse so I can place the image in the corre

Weird behavior of mouse location when performing a drag

2008-12-08 Thread Gustavo Pizano
Hello all. Well Im performing a drag-ndrop between views of the same app, I implemented the - (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender method, because I need to know the location of the mouse so I can place the image in the correct position of the view. But weirdly