• 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
NSTableView and NSArrayController: modifying values does not change sort order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and NSArrayController: modifying values does not change sort order


  • Subject: NSTableView and NSArrayController: modifying values does not change sort order
  • From: Frederick Cheung <email@hidden>
  • Date: Thu, 16 Sep 2004 21:15:11 +0200

I have a pretty simple setup, the usual NSArrayController managing an array of NSMutableDictionaries (whose values are strings) and a table view displaying the content of the array via bindings. There are add and remove buttons, and text fields for editing the selection, also bound to the array controller.

If I click in a column header then the tableview sorts the data as it should, but if I modify one of the values (via the text fields or directly editing the table) the data isn't resorted.

If i click on the column header again or if I call rearrangeObjects then the freshly added rows are sorted properly.

Is it intentional that the data isn't automatically resorted (I've noticed it in the "todos" bindings example on mmalc's page)?

Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: NSURLConnection sendSynchronousRequest forces keep-alive
  • Next by Date: Re: implementing dataWithContentsOfMemory as NSData category
  • Previous by thread: NSURLConnection sendSynchronousRequest forces keep-alive
  • Next by thread: Master-detail problem: After editing, detail switches back to original value
  • Index(es):
    • Date
    • Thread