Re: NSTableView and NSArrayController: modifying values does not change sort order
Re: NSTableView and NSArrayController: modifying values does not change sort order
- Subject: Re: NSTableView and NSArrayController: modifying values does not change sort order
- From: "M. Uli Kusterer" <email@hidden>
- Date: Fri, 17 Sep 2004 14:55:16 +0200
At 17:37 Uhr -0700 16.09.2004, Matt Neuburg wrote:
On Thu, 16 Sep 2004 21:15:11 +0200, Frederick Cheung <email@hidden> said:
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.
You always know (or can arrange to know) when the content changes, so if you
want to resort when it does, you can. m.
One suggestion: Make it slightly delayed, using a Timer, so if your
users want to edit three items in a row they don't have to scroll
back each time. It should also *not* re-sort at all while an item is
being edited.
So, in my ideal world:
-> User edits entry
-> Timer is installed to fire in 2 seconds and re-sort the list
-> User starts editing another entry
-> Timer is paused
-> User finishes editing entry
-> Timer is un-paused and reset to fire in 2 seconds and re-sort the list
-> 2 seconds pass without the user editing or causing a re-sort by
clicking the headers
-> The list is re-sorted
IMHO this is better than what the Finder does, where you have items
that jump away because of re-sorting just when you want to click one.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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