Re: Q: NSTableView not sorting edited rows
Re: Q: NSTableView not sorting edited rows
- Subject: Re: Q: NSTableView not sorting edited rows
- From: Leonard Budney <email@hidden>
- Date: Wed, 18 May 2005 15:48:33 -0400
On May 10, 2005, at 11:43 PM, Leonard Budney wrote:
Earlier I asked this question:
[snip]
Any idea how to force the NSTableView to re-sort data when a field
is edited?
I found the answer: for data to be re-sorted, it's necessary to call
[arrayController rearrangeObjects]. I added this call in two places.
For the general case, I added it to textDidEndEditing in my
NSTableView subclass. For the column containing checkboxes, I added
the call to MyDocument's observeValueForKeyPath method.
--Len.
_______________________________________________
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