On Sep 25, 2009, at 9:25 AM, Paul Bruneau wrote:

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.


Paul:

Unless I'm missing something, why not add properties to your array controller class that keeps track of the desired types? If you use multiple tables for the same array controller instance, you could get even fancier and keep an association between provided and accepted types for each table.

--
I.S.




_______________________________________________

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