Bindings question for core data application
Bindings question for core data application
- Subject: Bindings question for core data application
- From: Wayne Pascoe <email@hidden>
- Date: Tue, 4 Apr 2006 21:00:14 +0100
Evening all,
I have a core data application that is displaying the bulk of its
information in a single NSTableView. One of the columns needs to
display data referred to by a relationship in the Archive entity and
I can't work out how to do this.
I have 2 NSArrayControllers; one for Archives and one for
ContentTypes. The ContentType attribute of the Archive entity is a
relationship pointing to the ContentType entity. I want to display
the appropriate ContentType along with the other fields in my
NSTableView.
I have worked out how to do this in my Inspector Panel, but if anyone
could help me translate this to the NSTableView column, that would
help me a great deal :)
In the inspector panel, I have a NSPopupButton to select and display
the ContentType for an Archive. I have set the bindings for this up
as follows:
Content
Bind To: ContentTypes (NSArrayController)
Controller Key: arrangedObjects
Model Key Path: <empty>
ContentValues
Bind To: ContentTypes (NSArrayController)
Controller Key: arrangedObjects
Model Key Path: type
Selected Object
Bind To: Archives
Controller Key: selection
Model Key Path: contentType
I can't find equivalent fields to these in the NSTableColumn
bindings, so I am not sure how to replicate this behavior in the
NSTableView. Any help would be much appreciated :)
Thanks in advance,
--
Wayne Pascoe (gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870)
What we need is either less corruption, or more
chance to participate in it.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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