Cocoa Binding with NSArrayController and NSMutableArray
Cocoa Binding with NSArrayController and NSMutableArray
- Subject: Cocoa Binding with NSArrayController and NSMutableArray
- From: Tilo Villwock <email@hidden>
- Date: Mon, 3 Jan 2011 20:01:37 +0100
Hello there,
I'm trying to get into Cocoa Bindings and got a simple setup with a NSTableView and a NSMutableArray which holds custom Objects that contain a NSDate object and a NSNumber Object.
In my XIB I've created a NSArrayController which is bound to my App Delegate and uses the name of the NSMutableArray variable as Model Key Path. I've also set my custom object class in the attributes section of the array controller.
I've got two columns in my table view which are connected to the array controller and use "selection" as the controller key and the corresponding variable names of the NSDate and NSNumber objects as Model Key Path.
Now, is there anything wrong with this setup? I've filled the array with 3 objects in "applicationDidFinishLaunching" so the table view should contain them at start since the binding uses KVO or am I completely wrong here?
Thanks in advance!
Tilo_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden