Taming NSArrayController
In light of the comments on my last post, I thought it might be germane to mention that Chris Hanson’s weblog pointed me to the updated version of mmalcom Crawford’s Cocoa Bindings examples page, which answers a question I think most people who have tried to understand bindings have asked: “How the heck do I programmatically update an array managed by NSArrayController?” Until I saw Chris’s and mmalc’s explanations, I had concluded that such a thing was impossible (which, from my perspective, severely limited the usefulness of the bindings concept). Fortunately, it turns out it’s not even that difficult—you just have to know a little more about our old friend Key-Value Coding (“To-Many” accessor methods to be specific).