• 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: NSTableView Drag-Drop re-ordering...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView Drag-Drop re-ordering...


  • Subject: Re: NSTableView Drag-Drop re-ordering...
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 26 Nov 2008 01:36:18 -0800


On Nov 26, 2008, at 12:37 AM, Jean-Nicolas Jolivet wrote:

Well it depends on which example you're talking about... you posted a google search result...
The first link (a cocoa builder link) has nothing to do with row re- ordering...
The second link (CocoaDev one) has a bunch of code examples but a bunch are from users saying they're having problems with said code...
Results 3, 4 and 5 don't seem to be related at all...
Am I missing something obvious??
Don't get me wrong, I really don't mind a "RTFM" style reply, but I did search google and cocoa builder for that one and couldnt find anything that seemed to work...


Well, the second link from the first search and the first link from the second search point indirectly and directly to <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html > which contains:

With and Without Bindings
Shows a custom array controller that implements table view data source methods to support drag and drop, including copying objects from one window to another, drop of URLs, and re-ordering of the content array.
This example contains two implementations: the first uses standardNSTableView data source methods, the second uses bindings.


Bookmarks
This is the original version of "With and Without Bindings", and is slightly more advanced. It shows a custom array controller that implements table view data source methods to support drag and drop, including copying objects from one window to another, drop of URLs, and re-ordering of the content array.
This example only contains a bindings implementation, but supports multiple items in a drag, whereas the "With and Without Bindings" example does not; it also allows copying as well as moving within a table.




which seem to do what you want to do.



mmalc
_______________________________________________

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: NSTableView Drag-Drop re-ordering...
      • From: Jean-Nicolas Jolivet <email@hidden>
References: 
 >NSTableView Drag-Drop re-ordering... (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: NSTableView Drag-Drop re-ordering... (From: mmalcolm crawford <email@hidden>)
 >Re: NSTableView Drag-Drop re-ordering... (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: NSTableView Drag-Drop re-ordering... (From: mmalcolm crawford <email@hidden>)
 >Re: NSTableView Drag-Drop re-ordering... (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Re: How to use IB to create a viewcontroller which actually linking to another nib file?
  • Next by Date: Re: NSTableView Drag-Drop re-ordering...
  • Previous by thread: Re: NSTableView Drag-Drop re-ordering...
  • Next by thread: Re: NSTableView Drag-Drop re-ordering...
  • Index(es):
    • Date
    • Thread