• 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: Jean-Nicolas Jolivet <email@hidden>
  • Date: Wed, 26 Nov 2008 04:42:21 -0500

mmm interesting, I did download WithAndWithoutBindings before posting but it doesn't seem to implement drag and drop re-ordering... not in the WithBinding version at least... I'm trying it right now and it's definitely not working...

It seems like when they are saying "re-ordering" they mean column sorting, which I can do just fine... but definitely not drag and drop re-ordering..

Jean-Nicolas Jolivet

On 26-Nov-08, at 4:36 AM, mmalcolm crawford wrote:


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

Jean-Nicolas Jolivet email@hidden http://www.silverscripting.com

_______________________________________________

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

  • Prev by Date: Re: NSTableView Drag-Drop re-ordering...
  • Next by Date: Re: set position of alert panel
  • Previous by thread: Re: NSTableView Drag-Drop re-ordering...
  • Next by thread: Re: NSTableView Drag-Drop re-ordering...
  • Index(es):
    • Date
    • Thread