Re: Best way to implement drag and drop for multiple types of nstableview
Re: Best way to implement drag and drop for multiple types of nstableview
- Subject: Re: Best way to implement drag and drop for multiple types of nstableview
- From: "I. Savant" <email@hidden>
- Date: Fri, 25 Sep 2009 12:19:13 -0400
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 (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