Error setting value for key path nameSortDescriptors of object
<MLAccountController: 0x58ae390> (from bound object
<NSArrayController: 0x589d1a0>[entity: Account, number of selected
objects: 1](null)): [<MLAccountController 0x58ae390>
setValue:forUndefinedKey:]: this class is not key value coding-
compliant for the key nameSortDescriptors.
... 2) make nameSortDescriptors key value coding compliant.
Jumping in with a quibble ...
The OP's window controller class *is* KVC-compliant for the
'nameSortDescriptors' property, but it's an immutable property. The
sortable column needs it to be a mutable property. The error message
is slightly at fault here.
So the solution is to put the array of sort descriptors in an
instance variable and write a setter for the property, which is, I
think, what you were implying the OP should do.
I stand corrected. To be more specific, I would say a setter or
"Demystifying technology for your home or business"
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden