• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SliderText = NSSlider + NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Qt & NSWorkspace bug
  • Next by Date: Re: Capture the Window resize event
  • Previous by thread: Re: SliderText = NSSlider + NSTextField
  • Next by thread: Posting Event to Specific Window
  • Index(es):
    • Date
    • Thread