• 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: NSArrayController, drag & drop, objectAtIndex?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController, drag & drop, objectAtIndex?


  • Subject: Re: NSArrayController, drag & drop, objectAtIndex?
  • From: Seth Willits <email@hidden>
  • Date: Thu, 21 Nov 2013 14:47:05 -0800

On Nov 21, 2013, at 2:43 PM, Todd Heberlein <email@hidden> wrote:

> I have an NSMutableArray <—> NSArrayController <—> NSTableView
>
> When I click on a row to drag it to a different location in the same table, the row index passed into
>
> 	-tableView:writeRowsWithIndexes:toPasteboard:
>
> is the row displayed in the NSTableView, but this isn’t the same row that the object is in in the NSMutableArray. That is, the order of objects in the NSTableView doesn’t match the order of objects in the NSMutableArray.

It matches the order in the array controller’s arrangedObjects array.



--
Seth Willits



_______________________________________________

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


  • Prev by Date: Responder chain query
  • Next by Date: Re: Implementing keyboard shortcuts for shifting focus
  • Previous by thread: Re: Responder chain query
  • Next by thread: Why does NSDocument do this?
  • Index(es):
    • Date
    • Thread