• 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: [Q] Many array elements observing a few UI elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] Many array elements observing a few UI elements


  • Subject: Re: [Q] Many array elements observing a few UI elements
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 6 Mar 2006 07:15:05 -0800


On Mar 6, 2006, at 6:22 AM, Daniel Côté wrote:

Obviously what I need to do is register each element from the NSArrayController (upon insert, add and load) to be an observer of these two fields (min and max), then I am all set.

No, you don't. You should review the documentation on the Model, View, Controller design pattern for the fundamental reasons why this is the wrong approach, and the bindings documentation for why it is wrong specifically as it pertains to bindings (to summarise: views observe model objects, not the other way round).

Other than that, it's not clear exactly what you want to achieve:

"The user provides two numbers (min and max), and each filter in the table indicates how well it matches those criteria (with some simple math)."

Do you mean that you simply want to ensure that the value of a given attribute in the entity lies between max and min? Or should "match" be calculated from max and min?

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[Q] Many array elements observing a few UI elements (From: Daniel Côté <email@hidden>)

  • Prev by Date: HREF key into XML documents
  • Next by Date: Re: NSXMLDocument question (--> XSL Classes bug with > 1 XSL files?)
  • Previous by thread: [Q] Many array elements observing a few UI elements
  • Next by thread: Re: [Q] Many array elements observing a few UI elements
  • Index(es):
    • Date
    • Thread