• 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: GbT <email@hidden>
  • Date: Thu, 9 Feb 2006 10:50:44 +0100

2006/2/8, Chris Hanson <email@hidden>:

> You should not need to do this; binding a label or other non-editable
> value to a read-only key should work just fine.  See the bindings
> generated for a multiple-instance interface created by option-
> dragging a Core Data entity from a model to a window in Interface
> Builder.

I see that for an array controller one of the bindings is displaying
the count of selection and  arrangedObjects... for the entity dragged.
But my case is different, because I want to display the count of
objects referred by an arraycontroller of another entity.

For example, I have an Author entity displayed... for every author I'd
like to display how many books they wrote, so my relationship would
be: Author-->>Books.

>From what you wrote, I should bind the value property to
AuthorArrayController - arrangedObjects - books.@count, but this
doesn't work, it gives me the error posted in my first post.
 _______________________________________________
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

References: 
 >Core Data and @count keypath (From: GbT <email@hidden>)
 >Re: Core Data and @count keypath (From: "John R. Timmer" <email@hidden>)
 >Re: Core Data and @count keypath (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Core Data and @count keypath
  • Next by Date: Re: Core Data Problem
  • Previous by thread: Re: Core Data and @count keypath
  • Next by thread: Accurate Money Values in Core Data
  • Index(es):
    • Date
    • Thread