Re: Drag and Drop in a NSView:Mouse coordinates
Re: Drag and Drop in a NSView:Mouse coordinates
- Subject: Re: Drag and Drop in a NSView:Mouse coordinates
- From: Timothy Ritchey <email@hidden>
- Date: Wed, 17 Apr 2002 08:04:05 -0500
assuming you are implementing the DnD yourself... If you are subclassing
a view that already implements DnD, just do:
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
NSPoint location = [self convertPoint:[sender draggingLocation]
fromView:nil];
return [super performDragOperation:sender];
}
or whatever your normal DnD code it.
On Wednesday, April 17, 2002, at 06:57 AM, email@hidden
wrote:
How can i get the coordinates of where an object is dropped in a NSView?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.