FROM : douglas a. welton
DATE : Thu Jan 31 18:51:50 2008
On Jan 30, 2008, at 6:47 PM, John Richetta wrote:
> I'd like to create a unified "SliderText" control, that maintains a
> single numeric value, using both a slider and a text field (the
> latter providing high precision, when required). Changing either
> one should update the other, and notify clients of changes, and
> actions, as normal controls would. I'd also like this pairing to be
> as "self maintaining" as possible: I don't want the UI controller
> (window, panel, etc.), to deal with any messages beyond those it
> might receive from a single control. Also, creating one of these in
> IB should be no harder than copy/pasting an existing paired control.
>
> (Since I have roughly a hundred of these in my application, with
> more to come, it's unacceptable tedium, code duplication, and
> maintenance inefficiency to require the UI controller to synchronize
> these controls.)
Doesn't this sound like a job for Bindings and NSCollectionView?
DATE : Thu Jan 31 18:51:50 2008
On Jan 30, 2008, at 6:47 PM, John Richetta wrote:
> I'd like to create a unified "SliderText" control, that maintains a
> single numeric value, using both a slider and a text field (the
> latter providing high precision, when required). Changing either
> one should update the other, and notify clients of changes, and
> actions, as normal controls would. I'd also like this pairing to be
> as "self maintaining" as possible: I don't want the UI controller
> (window, panel, etc.), to deal with any messages beyond those it
> might receive from a single control. Also, creating one of these in
> IB should be no harder than copy/pasting an existing paired control.
>
> (Since I have roughly a hundred of these in my application, with
> more to come, it's unacceptable tedium, code duplication, and
> maintenance inefficiency to require the UI controller to synchronize
> these controls.)
Doesn't this sound like a job for Bindings and NSCollectionView?
| Related mails | Author | Date |
|---|---|---|
| John Richetta | Jan 31, 00:47 | |
| William Turner | Jan 31, 01:03 | |
| Thomas Engelmeier | Jan 31, 09:49 | |
| Uli Kusterer | Jan 31, 11:26 | |
| douglas a. welton | Jan 31, 18:51 |






Cocoa mail archive

