Re: Dragging tableView rows to an external applications
Re: Dragging tableView rows to an external applications
- Subject: Re: Dragging tableView rows to an external applications
- From: Graham Cox <email@hidden>
- Date: Tue, 23 Sep 2008 22:25:04 +1000
On 23 Sep 2008, at 10:22 pm, Graham Cox wrote:
Have you actually written the promised files type in -
tableView:writeRowsWithIndexes:toPasteboard: ? If not, that might be
why you're not seeing the expected cursor.
This further passage from the same doc is also pertinent, I guess:
"The NSTableView class only supports local drags by default. When you
try to drag table rows outside of the application, the table view's
draggingSourceOperationMaskForLocal: method returns
NSDragOperationNone. To allow interapplication drags in Mac OS X v10.4
and later, call the setDraggingSourceOperationMask:forLocal: method of
NSTableView. (If your code supports versions of Mac OS X prior to
v10.4, you must subclass NSTableView instead and override
draggingSourceOperationMaskForLocal: to return an appropriate value.)"
This from:
http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/UsingDragAndDrop.html#/
/apple_ref/doc/uid/20000726
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