Array controller content vs. contentArray binding
Array controller content vs. contentArray binding
- Subject: Array controller content vs. contentArray binding
- From: Dave Hayden <email@hidden>
- Date: Thu, 7 Jun 2007 15:04:16 -0700
I'm on my third or fourth attempt at understanding bindings, and I
think it's starting to sink in this time. I was playing with mmalc's
Combatants example at:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
and it all made sense. I added an "add" button to add entries to the
combatants array instead of pre-populating the list, and it was simple
and easy like bindings are supposed to be. (ha!) One thing, though:
The targets list didn't update. After a bit of poking, I found that if
I bind the array controllers' "contentArray" binding to the app
controller's "combatants" key path instead of the "content" binding,
it does work. Also, contrary to the comments in the source, it seems
to be a simple matter to do the binding in IB.
Am I missing something here? Or is the example just out of date?
Thanks!
-Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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