Re: Bindings and Custom Array Operators
Re: Bindings and Custom Array Operators
- Subject: Re: Bindings and Custom Array Operators
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 16 Mar 2005 02:10:02 -0800
On Mar 16, 2005, at 12:29 AM, Steven Kramer wrote:
Op 16-mrt-05 om 6:09 heeft E. Wing het volgende geschreven:
Hello, I would like to something kind of like the example at
http://homepage.mac.com/mmalc/CocoaExamples/ManualBindings.zip,
where there is a table of values and some field is computed based
upon
all the values in the table.
However, in my case, I need to do some computations that are more
complex and are not expressed by the existing array operators
provided
by Cocoa.
It can be done only in part and in an unsupported way.
Well, it depends how much effort you're willing to put in :-)
You could observe the array and the relevant property in each element
(just as you would for a bindings-enabled view, such as in the
GraphicsView class in the Graphics Bindings example at <http://
homepage.mac.com/mmalc/CocoaExamples/controllers.html>). If the
array, or a relevant element, is mutated, then update the value
accordingly...
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