• 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: Binding not setting model property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding not setting model property


  • Subject: Re: Binding not setting model property
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 18 Jan 2014 23:17:48 -0800

On Jan 18, 2014, at 22:44 , Roland King <email@hidden> wrote:

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

On Jan 18, 2014, at 20:54 , Quincey Morris <email@hidden> 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 (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: 
 >Binding not setting model property (From: Roland King <email@hidden>)
 >Re: Binding not setting model property (From: Dave Fernandes <email@hidden>)
 >Re: Binding not setting model property (From: Roland King <email@hidden>)
 >Re: Binding not setting model property (From: Quincey Morris <email@hidden>)
 >Re: Binding not setting model property (From: Roland King <email@hidden>)
 >Re: Binding not setting model property (From: Quincey Morris <email@hidden>)
 >Re: Binding not setting model property (From: Roland King <email@hidden>)

  • Prev by Date: Re: Binding not setting model property
  • Next by Date: Re: Binding not setting model property
  • Previous by thread: Re: Binding not setting model property
  • Next by thread: Re: Binding not setting model property
  • Index(es):
    • Date
    • Thread