Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVC error when asking for a sort (Core Data / Bindings)



Hello List,

I have an NSTableView which is bound to an NSArrayController ; this controller represents "accountClass" Entities. On the NSArrayController, I have a sort descriptor bound to a function (called accountClassesSortDescriptors) that returns an array of NSsortDescriptors (actually, there is just one sort descriptor in this array right now; I initialized it with initWithKey: @"accountClass" ascending: @"YES").

My data is sorted correctly when the table view is displayed, however as soon as I click a column header I get an error message in the log : "Error setting value for key path accountClassesSortDesciptors of object <blablaController> ... this class is not key value coding-compliant for the key accountClassesSortDescriptors".

This definetely smells like a noob question to me, but I've been looking all over the place for 2 days now and I can't get this to work properly. Any thoughts on this ?

Thanks,
Alain
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.