• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: KVC error when asking for a sort (Core Data / Bindings)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: KVC error when asking for a sort (Core Data / Bindings)
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 3 Nov 2007 16:39:36 -0700


On Oct 31, 2007, at 8:39 AM, Alain Schartz wrote:

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".

When you click the table column, the sort descriptors are updated.
Since you've bound 'sortDescriptors', the array controller now attempts to update the value to which you've bound it...


(Ben then shows the solution...)

mmalc

_______________________________________________

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


  • Prev by Date: re:KVC error when asking for a sort (Core Data / Bindings)
  • Next by Date: Re: NSMailDelivery now in deprecation w/Leopard
  • Previous by thread: re:KVC error when asking for a sort (Core Data / Bindings)
  • Next by thread: SenTesttingKit.framework runtime failure
  • Index(es):
    • Date
    • Thread