I have a NSArrayController bound to an NSTableView so the table column like the following:
NSTableView bindings:
Content -> ArrayController.arrangedObjects
SelectionIndexs -> ArrayController.arrangedObjects
SortDescriptors -> ArrayController.sortDescriptors
NSTableColumn bindings:
Value -> ArrayController.arrangedObjects.description
When I try and sort it using the column header it just crashes with something like
error setting value for key path sortDescriptors of object NSArrayController
Any ideas?
Let me suggest you a simple way to do this –
If you are new to using bindings with table view, this article will be of great help to you-
EDIT: Project relocated to Github. (No more explanation – code only)
NSTableView, NSArrayController and More Bindings