Best way to implement drag and drop for multiple types of nstableview
Best way to implement drag and drop for multiple types of nstableview
- Subject: Best way to implement drag and drop for multiple types of nstableview
- From: Paul Bruneau <email@hidden>
- Date: Fri, 25 Sep 2009 09:25:50 -0400
Hi-
I have used mmalc's DNDArrayController class from his Bookmarks
example code to implement drag and drop for one of my NSTableViews. Of
course it works great.
But now I would like to set up a couple other table views with other
types of data.
I can re-use my DNDArrayController, but then the interface thinks a
user can drag between two tables with totally different types of data
in them.
I can copy the class files and set up the new drag types in the
copies, but I feel the urge to resist having multiple nearly identical
classes of DNDArrayController lying around.
I guess I could subclass DNDArrayController and have a method that
returns the data types for that particular subclass. That one doesn't
sound too evil.
Can anyone provide some guidance on the correct way to set up these
multiple NSTableViews with drag and drop?
Thanks
_______________________________________________
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