Re: Problems binding NSViewController's representedObject
Re: Problems binding NSViewController's representedObject
- Subject: Re: Problems binding NSViewController's representedObject
- From: Rob Nikander <email@hidden>
- Date: Sat, 22 Mar 2014 10:59:28 -0400
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 <email@hidden>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 (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