I am trying to create a very simple Window for display a list of items that comes from an Sqlite3 database. I have a generic list of my objects, and I want to bind that to the controls on the windows. What is the best way to do this?
If it was .NET windows forms, I would do this, what is the Cocco equivalent? myBindingSource.DataSource = new List<MyObject>();
My ViewController.cs code currently looks like this:
List<MyObject> dataSource = DataStore.GetLibraries();
public override AwakeFromNib() {
base.AwakeFromNib();
dataSource = GetMyObjects();
myArrayController.Bind("contentArray", this, "dataSource", null); // Throws error
}
But this throws an error: this class is not key value coding-compliant for the key DataSource.
Thanks!