Re: [Q] Many array elements observing a few UI elements
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