Re: Another Core Data + table view question
Re: Another Core Data + table view question
- Subject: Re: Another Core Data + table view question
- From: Alex Reynolds <email@hidden>
- Date: Sat, 18 Aug 2007 13:26:14 -0400
On Aug 18, 2007, at 12:32 PM, mmalc crawford wrote:
It seems that you haven't fully grasped Core Data or Cocoa
bindings, and trying to use the two before you have mastered either
is simply going to cause further confusion as when things don't
work as you would wish you're not going to know where the problem
lies.
I haven't fully grasped either. The documentation is okay, but not
very clear in some areas, which is why I am posting questions to this
mailing list, to focus in on the areas that I need to learn. Thanks
for the link.
Also, I note that if I deselect the Server entity, this does not
refresh the Display table view, which should then no longer render
any of the Display entity data.
If there's a relationship Server ->> Display, and the Display table
is supposed to be displaying the contents of the currently-selected
Server, then you haven't set up the binding correctly for the
contentArray for the Display table. This was discussed on the list
within the last day or two.
If I go into Interface Builder and click on the Displays
NSArrayController, selecting "Binding" from the Inspector, there is a
"contentArray" binding available, to which I have applied the
following settings:
Bind to: Servers
Controller key: selection
Model key path: display
The "display" key is the relationship in Servers to a particular
display.
When I run my application, there is no data shown in the Display
table view, whether or not I make a Server selection.
From reading this:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdTroubleshooting.html
It looks like I need to bind "contentSet" and not "contentArray" when
binding a relationship between NSArrayController objects?
I then tried to bind these settings to the Displays "contentSet":
Bind to: Servers
Controller key: selection
Model key path: display
When I run my application, there is no data shown in the Display
table view, whether or not I make a Server selection.
-Alex
----------------------------------------------------------------------
Alex Reynolds, M. Biot.
217 Leidy Building / 6013
Department of Biology
University of Pennsylvania
Philadelphia, PA 19104
V: +1 215 573.2818
F: +1 215 898.8780
E: mailto:email@hidden
W: http://www.bio.upenn.edu/computing/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden