Thanks for the reply! I still have a few questions, though.
It took awhile, but I read both chapters and the referenced guides in the OSX documentation completely, but they don’t answer my question, perhaps I asked it poorly. (Also possibly the topics have changed to no longer discuss the details that I needed, the document viever went to the web and chose different context than the index of the document viewer displayed.) My biggest problem is just figuring out the UI enough that I know how to connect A to B, and the suggested reading didn’t cover that in much detail.
Once I have all the code entered, I’m having problems figuring out
- What should connect to what
- How to make the connections in the UI
For 1), I think that I need to connect the table in the XIB to the data source in RMDcument. I think that I need to connect the columns to the fields of the person object.
For 2), problems making the connections: When I select the table, I need to bind it to RMDocument.m’s data source methods. Is that represented as “File Owner”? Is it correct to set the dataSource and delegate methods to FileOwner? It seems that the chapter with a good explanation of FileOwner is later in the book than I have gotten, but I’m trying to be disciplined and complete the challenges before I proceed. I tried setting dataSource and Delegate of the table in the XIB to FileOwner by double clicking on the table and control dragging to the FileOwner object, I hope that is right. I then tried dragging from the table to RMDocument.h as we did in a previous chapter (5) to make a tableView object.
Then, I need to bind the columns to the fields. I try selecting a column, and in the bindings inspector, I choose to bind to file owner, check the checkbox, and I would very much like to set the controller key to employees, and the ModelPathKey to personName, but what I see is that I can’t edit the controller key until I put a valid value into ModelPathKey, and it won’t take person name. It will take “tableView”, but none of the completions seem to get me to personName.
Now, I’m confused and can’t figure out how to proceed.
The binding process seems a bit too magical - while I appreciate that it is doing work for us behind the scenes, I don’t really know how to use the magic, and I haven’t found a good reference for it in my forays into the documentation and web searches. The book is wonderful in handholding us for each connection that we need to make, but I haven’t yet discerned the laws behind what it tells us to do well enough to do it myself yet.