• 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: Q: NSTableView not sorting edited rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: NSTableView not sorting edited rows


  • Subject: Re: Q: NSTableView not sorting edited rows
  • From: The Karl Adam <email@hidden>
  • Date: Sat, 7 May 2005 10:35:09 -0400

If your using bindings, this is automatic, if your manaully implementing a datasource then you need to provide sort descriptors on each column you want sortable and implement – tableView:sortDescriptorsDidChange:

-Karl

On 5/7/05, Leonard Budney <email@hidden> wrote:
Hello,

Sorry if this is a FAQ: I did a search and couldn't find anything on
the subject.

I'm using an NSTableView, subclassed so the enter key selects the
current row as iTunes does. I enabled sorting in the Attributes
setting of the inspector in Interface Builder, and it works fine. The
problem is, when I edit a cell in the sorted column, the NSTableView
doesn't re-sort the entries (as iTunes does); if the edited value is
now out of order, the row doesn't change position.

I tried calling [tableView reloadData] in the changeKeyPath method of
MyDocument, but that had no effect. Other than that, I've searched in
vain for a hint on the Internet. Can anyone help?

Thanks!
Len.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: Q: NSTableView not sorting edited rows
      • From: Leonard Budney <email@hidden>
References: 
 >Q: NSTableView not sorting edited rows (From: Leonard Budney <email@hidden>)

  • Prev by Date: Re: PDF-Preview-like spotlight behavior
  • Next by Date: Re: Weak link framework problem
  • Previous by thread: Q: NSTableView not sorting edited rows
  • Next by thread: Re: Q: NSTableView not sorting edited rows
  • Index(es):
    • Date
    • Thread