Re: Core Data and @count keypath
Re: Core Data and @count keypath
- Subject: Re: Core Data and @count keypath
- From: "John R. Timmer" <email@hidden>
- Date: Wed, 08 Feb 2006 19:19:33 -0500
Aside from binding to a display pattern, how does one create a read-
only binding (or was that it)?
On Feb 8, 2006, at 11:15 AM, Chris Hanson wrote:
On Feb 7, 2006, at 4:30 AM, John R. Timmer wrote:
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.
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.
-- Chris
____________________________________
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