• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Array controller content vs. contentArray binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Array controller content vs. contentArray binding
      • From: mmalc Crawford <email@hidden>
  • Prev by Date: Re: Sorting filenames the way the Finder does?
  • Next by Date: Re: Sorting filenames the way the Finder does?
  • Previous by thread: Sorting NSTableView columns with digits as numbers [Was: Re: Sorting filenames the way the Finder does?]
  • Next by thread: Re: Array controller content vs. contentArray binding
  • Index(es):
    • Date
    • Thread