NSTableView and NSArrayController: modifying values does not change sort order
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