Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and drop not working from NSMatrix subclass



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.