Drag and drop not working from NSMatrix subclass
Drag and drop not working from NSMatrix subclass
- Subject: Drag and drop not working from NSMatrix subclass
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Sun, 30 Apr 2006 20:12:23 -0500
Hello,
I have a source-list NSTableView, and an NSMatrix subclass plus
another NSTableView representing the same data as the matrix (icon vs.
list view). Dragging from the list view to the source list is work
great. For the NSMatrix, I implemented my own drag-and-drop support,
and although the drag image is appearing correctly, the source list
won't accept the drops. It doesn't even call
-tableView:validateDrop:proposedRow:proposedDropOperation:.
My matrix calls this method from -mouseDragged::
[self dragImage:dragImage
at:imageLoc
offset:NSZeroSize // ignored in 10.4
event:theEvent
pasteboard:[NSPasteboard pasteboardWithName:NSDragPboard]
source:self
slideBack:YES];
And it returns the proper drag mask in -draggingSourceOperationMaskForLocal:.
Any ideas what I'm doing wrong?
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden