Problems binding NSViewController's representedObject
Problems binding NSViewController's representedObject
- Subject: Problems binding NSViewController's representedObject
- From: Rob Nikander <email@hidden>
- Date: Sat, 22 Mar 2014 08:54:01 -0400
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 (email@hidden)
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:
This email sent to email@hidden