Re: Core Data and @count keypath
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