• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems binding NSViewController's representedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problems binding NSViewController's representedObject
      • From: Rob Nikander <email@hidden>
  • Prev by Date: Re: Simulating sublayers in CATiledLayer
  • Next by Date: Re: Problems binding NSViewController's representedObject
  • Previous by thread: Re: Simulating sublayers in CATiledLayer
  • Next by thread: Re: Problems binding NSViewController's representedObject
  • Index(es):
    • Date
    • Thread