Re: Drag with NSTableView
Re: Drag with NSTableView
- Subject: Re: Drag with NSTableView
- From: Livio Isaia <email@hidden>
- Date: Mon, 13 Aug 2007 15:48:44 +0200
I. Savant wrote:
On Aug 13, 2007, at 6:17 AM, Livio Isaia wrote:
Unfortunately nothing happens, I mean the methods for dragging (e.g.
(BOOL)tableView:writeRowsWithIndexes:toPasteboard:) are never called.
Practically I followed all the steps I found in Drag and "Drop
Programming Topics for Cocoa"->"Using Drag and Drop in Tables" (I
also looked at the samples DragNDropOutlineView and
WithAndWithoutBindings).
Please search the list's archives before posting as this is a
super-FAQ. You need to -registerForDraggedTypes: which is,
incidentally, STEP ONE in the documentation:
http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/
Tasks/UsingDragAndDrop.html
--
I.S.
But I did call -registerForDraggedTypes: int the -awakeFromNib method of
the NSTableView'sdelegate class. So what can be the problem?
Thank you all,
best regards,
livio.
_______________________________________________
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