Drag with NSTableView
Drag with NSTableView
- Subject: Drag with NSTableView
- From: Livio Isaia <email@hidden>
- Date: Mon, 13 Aug 2007 12:17:52 +0200
I have an NSTabelView whose NSTableColumn is bound to the field name of
a myDataSourceItem type arranged in an NSArrayController and it works fine.
Now I have to implement dragging with the NSTableView, so I subclassed
the NSArrayController as myNSArrayController and set it as the
NSTableView's delegate (of course I put in it the methods for
NSTableView dragging operations).
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).
Is it possible that I forgot some crucial binding? Unfortunately I
couldn't open (!?) WithBindings's nib file in order to see the actual
bindings.
Got any idea?
Many thanks in advance.
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