Multi-column sorting with an NSTableView bound to an NSArrayController

Posted by Cinder6 on Stack Overflow See other posts from Stack Overflow or by Cinder6
Published on 2010-03-14T17:10:53Z Indexed on 2010/03/14 17:15 UTC
Read the original article Hit count: 557

Filed under:
|
|
|

Hi there. I have an NSTableView that's bound to an NSArrayController. Everything gets loaded into the table correctly, and I have sort keys and selectors set for the various columns (this also works). What I'm trying to do is sort multiple columns when the user clicks one column header, but I can't find any way to do this. I could brute-force a way by overriding tableView:mouseDownInHeaderOfTableColumn:, but that seems an inelegant way of doing it.

Is there a good way of doing multi-column sorting in an NSTableView using bindings?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about help