There's an answer on stackoverflow. I wasn't keeping a strong reference to the ViewController. Doh.
On Sat, Mar 22, 2014 at 8:54 AM, Rob Nikander <rob.nikan...@gmail.com>wrote: > Hi, > > I've posted here: > http://stackoverflow.com/questions/22573176/why-is-nsviewcontroller-not-binding-representedobject > > There's code and screenshots in the above link, but the basics are this: > I've created an `NSViewController` subclass, with a corresponding xib. I > try to set a simple model object to the controller's `representedObject` > property, and bind a text field to `representedObject.firstName`. It works > to initially fill in the text field, but when I edit the text field, the > model isn't updating. > > Any ideas? > > Rob > > zipped up demo project: > https://drive.google.com/file/d/0B2NHW8y0ZrBwWjNzbGszaDQzQ1U/edit?usp=sharing > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com