• 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: Refreshing Cocoa Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing Cocoa Bindings


  • Subject: Re: Refreshing Cocoa Bindings
  • From: Gordon Apple <email@hidden>
  • Date: Thu, 12 Jan 2017 14:37:04 -0600
  • Thread-topic: Refreshing Cocoa Bindings

Just don't try binding to an arrayController via representedObject. I've
resorted to using representedObject to establish a local iVar to reference
such an arrayController. That works.


On 1/12/17 1:42 PM, "email@hidden"
<email@hidden> wrote:

>
On Jan 11, 2017, at 13:16 , Daryle Walker <email@hidden> wrote:
>
> I'm
> going to store a reference to a model in a NSViewController's
> representedObject field. The various contained views will reference that field
> through KVO (Is that possible?) for their bound values. If I change the value
> of the represented object (what it points to, not any attributes within), will
> the views automatically track to the new object? Or do I have to use a
> explicit method to let them know (i.e. clear their caches)?

The
> ³representedObject² property is explicitly documented as KVO compliant, so you
> can observe and and bind through it.





_______________________________________________

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


  • Prev by Date: Re: Opposite of windowDidLoad
  • Next by Date: Re: Enabling UISearchBar cancel button?
  • Previous by thread: Re: Refreshing Cocoa Bindings
  • Next by thread: Enabling UISearchBar cancel button?
  • Index(es):
    • Date
    • Thread