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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to