• 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: Core Data and @count keypath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and @count keypath


  • Subject: Re: Core Data and @count keypath
  • From: "John R. Timmer" <email@hidden>
  • Date: Tue, 07 Feb 2006 07:30:38 -0500

You have to bind to a value that's read/write. @count is read only. If you need to bind to it, make a managed object key like arrayCount that returns the count in the getter method, and does nothing in the setter method.

JT

On Feb 7, 2006, at 2:14 AM, GbT wrote:

Hi,
I have a core data app with some entities, the entity A has a to-many
relationship with another entity B. I use an nstreecontroller for A
and want to display the number of records for the relationship A-->>B,
but if I put relationshipToB.@count in the model key path in the
bindings I obtain this message:

*** NSRunLoop ignoring exception '[<_NSFaultingMutableSet 0x3c5d30>
addObserver:forKeyPath:options:context:] is not supported. Key path:
@count' that raised during posting of delayed perform with target
37e980 and selector 'open:'

The selector open is related to the drawer... but the addObserver
thing isn't clear to me...
My entities are all subclassed by NSManagedObject.

____________________________________ Science writer, Ars Technica (among other things) http://arstechnica.com/journals/science.ars



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Core Data and @count keypath
      • From: Chris Hanson <email@hidden>
    • Re: Core Data and @count keypath
      • From: GbT <email@hidden>
References: 
 >Core Data and @count keypath (From: GbT <email@hidden>)

  • Prev by Date: How to change the strings in application Main menu
  • Next by Date: Re: Advice on restricting/monitoring character input in NSTextView
  • Previous by thread: Core Data and @count keypath
  • Next by thread: Re: Core Data and @count keypath
  • Index(es):
    • Date
    • Thread