core data - Tinkering under the hood with Bindings in Xcode -
Take two core data entities, install the following types:
unit A: car < / P>
Properties: Year Model Relationships: Manufacturer (<<> -> Producer)
Unit B: Manufacturer
Now, what I want to do is display a display NSTableView < / Code> where we model the car in a column, then be followed by the manufacturer Education is, after year. Model binding and the year is not a problem, but if I bind a column in the table, then I get a relation fault error in each cell in that column, whatever I am looking for. How can I play with the compulsion to display the appropriate manufacturer name associated with the car?
The question is going a bit further, how can I set another table view car
entries with the Creator
relationship Ask for display,
There is a bit more information about how to set it up It will be helpful, you can tie your arrows in the same way as if your other qualities, the same binding and destined With the key key Simply use the full key path manufacturer.name
for the model key path.
For more than one relationship, you use two array controllers to prepare your content from your original data creator
class (in entity
mode) To set the 'master' array controller. After that, you create a secondary, 'expansion' array controller. Leave the array controller in the class
mode (with the default NSMutableDictionary
class), and tie your contents in your Master Arter Controller, which will be select
The path of the model for the car
.
There are so many tutorials that actually do this. I highly recommend walking through one or two; I found particularly helpful, the whole series is great.
Comments
Post a Comment