Re: SliderText = NSSlider + NSTextField
Re: SliderText = NSSlider + NSTextField
- Subject: Re: SliderText = NSSlider + NSTextField
- From: "douglas a. welton" <email@hidden>
- Date: Thu, 31 Jan 2008 12:51:50 -0500
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?
_______________________________________________
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