On Jan 18, 2014, at 22:44 , Roland King <r...@rols.org> wrote:

> What derived property can I write on the view which removes that dependency?

On Jan 18, 2014, at 20:54 , Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:

> create a derived property on the view or window controller that’s based on 
> the data model property


Sorry, what I wrote doesn’t perhaps read as intended. I meant:

“… create a derived property on the view controller or window controller that’s 
based on the data model property …”

Assuming the view is in a nib file, this allows you to bind the text field to 
File’s Owner (the view controller or window controller, almost always) with 
minimal fuss.

In my experience, the “data model” that UI elements use is almost always a 
“transformed” variant of the pure data model (or an amalgamation of several 
pure data models), and it’s conceptually easier to retain if the entire variant 
is presented by the controller to the views.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to