I've been reading a lot about Core Data and I have followed the example here with no problems.
What I am trying to build is a simple program that will allow me to list the wines I have in my cellar. I (ultimately) want a three-pane view with a browser (think the left-hand-side of iTunes) on the left, a list view displaying the name and vintage of my wines and a detail pane at the bottom with more data on the wine selected in the list view.
So far, I have built my entity model. I have the following entities:
1. Wine (cost, vintage, etc)
2. Vineyard (name, region, country)
3. Grape (variety, colour)
I have set up inverse relationships between them.
I have set up the array controllers (wines, grapes, vineyards) in IB.
I have bound the 'Name' column value to Wines.arrangedObjects.Name and the 'Vintage' column value to Wines.arrangedObjects.Vintage. This works great.
I tried binding the 'Vineyard' column value to Vineyards.selection.Name but this didn't work. I then tried binding the 'Vineyard' column value to Vineyards.arrangedObjects.Name but this wasn't right either.
I think it has something to do with the fact that I am not 'selecting' an entity as I am trying to display them all in a long list but I am not sure where I am going wrong.
Does this make any sense at all?
MadDoc,
What I am trying to build is a simple program that will allow me to list the wines I have in my cellar. I (ultimately) want a three-pane view with a browser (think the left-hand-side of iTunes) on the left, a list view displaying the name and vintage of my wines and a detail pane at the bottom with more data on the wine selected in the list view.
So far, I have built my entity model. I have the following entities:
1. Wine (cost, vintage, etc)
2. Vineyard (name, region, country)
3. Grape (variety, colour)
I have set up inverse relationships between them.
I have set up the array controllers (wines, grapes, vineyards) in IB.
I have bound the 'Name' column value to Wines.arrangedObjects.Name and the 'Vintage' column value to Wines.arrangedObjects.Vintage. This works great.
I tried binding the 'Vineyard' column value to Vineyards.selection.Name but this didn't work. I then tried binding the 'Vineyard' column value to Vineyards.arrangedObjects.Name but this wasn't right either.
I think it has something to do with the fact that I am not 'selecting' an entity as I am trying to display them all in a long list but I am not sure where I am going wrong.
Does this make any sense at all?
MadDoc,