You don't give us the code where you add the sort descriptor to the
array controller, but from the looks of things, are you maybe calling
[arrayController setSortDescriptors:alphaSortDescriptor] (i.e.
setting just the descriptor itself, instead of an array of descriptors)?
The code should look something like [arrayController
setSortDescriptors:[NSArray arrayWithObject:alphaSortDescriptor]];.
I only ask because the exception that you are getting looks like
something is trying to treat an NSSortDescriptor as if it were an
NSArray.
Hope this helps,
- Greg
On May 2, 2007, at 9:44 AM, Micha Fuhrmann wrote:
Hi there,
I've got an NSArrayController pointing to NSSortDescriptor in a
custom class using the Model Key Path in the IN Bindings.