I've got a table column that's binded to a NSArrayController. The
NSArrayController gets it's content from another NSArrayController
using "@distinctUnionOfObjects.artist" as model key path.
So far so good, now I'm trying to sort that column using the
setSortDescriptors instance method than contains the following
NSSortDescriptor:
As the setSortDescriptors is applied to the NSArrayController I get
an error message:
[<NSCFString 0x390490> valueForUndefinedKey:]: this class is not key
value coding-compliant for the key artist.
Which is expected since the content of NSArrayController is an Array
with a suit of NSStrings.
How can I still sort my column then? How can I sort the Array of my
NSArrayController? NSSortDescriptor seems to need a key, since there
is none how can I still sort?