Simon Fell > Its just code > [self exposeBinding:@"foo"]
Thursday, December 21, 2006
I've been using Cocoa bindings more and more, they do a great job of hanging a UI together without writing a bunch of glue code, master detail views seem to be the killer application for them. On a recent app I did almost the entire UI with bindings, then I needed a custom view, and started looking into how that could support binding. After a bit of reading, it turns out its painfully trivial, expose the thing you want to bind to as a regular property, then in the class initializer call exposeBinding, doesn't get any easier than that. If you want to see how easy bindings and coredata can make things, check out this great core data video tutorial.