YAMDBP
YAMDBP
- Subject: YAMDBP
- From: David Emme <email@hidden>
- Date: Sun, 16 Apr 2006 09:52:03 -0700
Yet Another Master-Detail Binding Problem :-)
I'm trying to build a "standard Recipes-Ingredients" style two-table
interface, based on SQLite tables in Core Data. In summary, I have
things working to the point that when the window first opens, the first
(topmost) Recipe is selected in its NSTableView and its corresponding
list of Ingredients is displayed properly in the second NSTableView. The
problem is that clicking on a different Recipe does not change the list
of Ingredients displayed.
By changing the sort order for the Recipes (ascending or descending), I
can verify that the proper Ingredients list is displayed for whichever
Recipe is initially selected when the window opens.
My entities look like:
Recipe <--------------------------------------------->> Ingredient
r_ingredients r_recipe
The RecipesController NSArrayController is based on entity Recipe and
has all attribute boxes checked except for "Always uses multiple value
marker", and is bound to the proper ManagedObjectContext. Its associated
NSTableView has a "content" binding to
"arrangedObjects[RecipesController]".
The IngredientsController NSArrayController is based on entity
Ingredient and has all attribute boxes checked except for "Always uses
multiple value marker", and is bound to the same ManagedObjectContext.
It has a "contentSet" binding to
"selection.r_ingredients[RecipesController]". Its associated NSTableView
has a "content" binding to "arrangedObjects[IngredientsController]".
I've stared at my bindings compared to those in the CoreRecipes example
till my eyes crossed, but can't see any difference. I'm obviously
missing something fundamental, but I just can't see it.
TIA,
-Dave
--
For every complex problem, there is a solution that is simple,
neat, and wrong.
- H. L. Mencken
_______________________________________________
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