• 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
Re: Problems binding NSViewController's representedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problems binding NSViewController's representedObject (From: Rob Nikander <email@hidden>)

  • Prev by Date: Problems binding NSViewController's representedObject
  • Next by Date: NSLayoutManager subclass - change the bounds of an attributed string
  • Previous by thread: Problems binding NSViewController's representedObject
  • Next by thread: NSLayoutManager subclass - change the bounds of an attributed string
  • Index(es):
    • Date
    • Thread