• 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
Best way to implement drag and drop for multiple types of nstableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Best way to implement drag and drop for multiple types of nstableview
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Advice on debugging a GC related crash
  • Next by Date: proper technique for CoreData SQLite fetch with sort descriptors
  • Previous by thread: Re: Advice on debugging a GC related crash
  • Next by thread: Re: Best way to implement drag and drop for multiple types of nstableview
  • Index(es):
    • Date
    • Thread