Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SliderText = NSSlider + NSTextField




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >SliderText = NSSlider + NSTextField (From: John Richetta <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.