• 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: Leonard Budney <email@hidden>
  • Date: Sat, 7 May 2005 10:53:43 -0400


On May 7, 2005, at 10:35 AM, The Karl Adam wrote:

If your using bindings, this is automatic...

I'm using bindings, so the automatic behavior isn't working. Any idea where I should be looking?


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 )
Help/Unsubscribe/Update your Subscription:
This email sent to 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
References: 
 >Q: NSTableView not sorting edited rows (From: Leonard Budney <email@hidden>)
 >Re: Q: NSTableView not sorting edited rows (From: The Karl Adam <email@hidden>)

  • Prev by Date: Re: Weak link framework problem
  • Next by Date: Using AWT in Cocoa-Java app
  • Previous by thread: Re: Q: NSTableView not sorting edited rows
  • Next by thread: Re: Q: NSTableView not sorting edited rows
  • Index(es):
    • Date
    • Thread