Re: Tables showing different kinds of core data entities
Re: Tables showing different kinds of core data entities
- Subject: Re: Tables showing different kinds of core data entities
- From: "I. Savant" <email@hidden>
- Date: Wed, 26 Apr 2006 08:33:49 -0400
On Apr 26, 2006, at 8:13 AM, Matteo Rossi wrote:
All is perfectly working. First problem: if I create a second
NSArrayController for Rectangle (rectangleController2) and I bind a
table view to this new one I can't see Rectangle entities I have
created with the first NSArrayController (rectangleController).
You probably just need your array controller (the one that's not
reflecting the other's changes) to -fetch:. The 'problem' controller
is only showing you the results of its last fetch.
Here comes the second problem: I want to display all the entities I
create (both rectangles or circles) in a single table with two
columns: one for a counter and a second for areas. I have tried
creating a NSArrayController for Shape (shapeController) and bind
it to my tableview, but it doesn't work: rectangles and circles
created don't appear in this new table. What's the problem ?
As far as I know this should work. I've done something similar
with an "Action" abstract entity with "Submission" and "Response"
derived entities. Actions shared the initiation date and completion
date, as well as a descriptive string, and an "person" relationship
for the initiator. Works just fine this way and I can't remember
doing anything special to get it to work. Then again, it's been eight
months since I've even touched that project ... :-)
Are you sure everything's connected right? What happens if you
just pull it all out and do it again? :-) I know, not a very
appealing notion, but sometimes it really pays off.
Hope this is some help.
--
I.S.
_______________________________________________
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