I have an NSScrollView
wich is bound with an ArrayController
. I need to sort the content alphabetically. I've tried to do this with bindings but I can't find the right thing to bind. I used the following sortDescriptor
on my ArrayController
.
[myArrayController setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"myKey" ascending:YES selector:@selector(compare:)]]];
Do I miss a step in the process or am I not even close to sorting the content?