Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
- Subject: Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
- From: Matteo Rossi <email@hidden>
- Date: Wed, 26 Apr 2006 23:24:01 +0200
I've run some tests to seek for any bugs. First of all I've forgotten
to tell that all these tables appear in a sheet window. When I try to
do the same things in the document window all works perfectly. When I
enter the sheet window at first I find in my Shape table all the
entities I created in the document window but when I add some it's
not updated. I had to insert a fetch button to solve the problem,
but... it's inelegant and quite buggy. So I think it's a problem
about the application loop or something similar. Is there a workaround ?
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