On Jan 11, 2017, at 13:16 , Daryle Walker <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to