So I decided to play around a little with core-data, and it snowballed into playing with a while bunch of other things as well. I'm making a practice app that will allow me to build a "garage" of cars. Mind you this is in Cocoa and not Cocoa Touch. It's just a simple, silly database. Right now I have my simple model done in core-data (just one entity called "cars" and some suitable attributes), I have the main view all linked up, but where hit a brick wall is making the "add view" window link up with everything else.
In the main window, I have a NSTableview, some text labels, and an imagewell for displaying all the data. When the user clicks the "add" button, instead of linking to the "add" function of the array controller, an "Add" window pops up with text fields, an imagewell, and a "save" button. I also have an AddVewController with all the outlets defined as instance variables. Here's where I'm stuck.
I want the user to be able to fill out the text-fields and drop an image in the imagewell, and then when they press "save", it adds it to the core-data model. Do I create a method in the AddViewController that passes the values into an array when the user presses save? If so, what do I do with that array? Should I just use Cocoa-bindings and Key-Value Coding? Am I supposed to involve a delegate of some sort at this point?
This is probably simpler than I think it is but after hours of researching online I'm getting overwhelmed with information and none of it is jumping up and down and pointing right now.