• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to implement drag and drop for multiple types of nstableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Best way to implement drag and drop for multiple types of nstableview
      • From: Paul Bruneau <email@hidden>
References: 
 >Best way to implement drag and drop for multiple types of nstableview (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Quartz 2D or Core Animation?
  • Next by Date: Re: Correct way to tell if a path is to a .bundle?
  • Previous by thread: Best way to implement drag and drop for multiple types of nstableview
  • Next by thread: Re: Best way to implement drag and drop for multiple types of nstableview
  • Index(es):
    • Date
    • Thread