• 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: Realtime output from NSSlider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Realtime output from NSSlider


  • Subject: Re: Realtime output from NSSlider
  • From: David Remahl <email@hidden>
  • Date: Sun, 9 Mar 2003 06:34:12 +0100

Dear List

There have been several times recently when a NSSlider which give sends a
notification and updates value every time the slider is moved at all would be
handy.

While I am pretty confident that subclassing NSSlider and adding notification
sending code to mouseDragged would do the trick, I am confused as to how I
would attach the GUI slider to this custom class. Would I just create a custom
view object and attach the custom slider class to it?

You would create an NSSlider subclass, and import the interfaces into IB. Then you would drag a boiler plate slider from the palette, and show its inspector. From the Classes section, you would then select your custom subclass.

Does cocoa provide an easier way to do this?

Yes, check Continuous on the Slider inspector.

/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Realtime output from NSSlider (From: "David Vernon" <email@hidden>)

  • Prev by Date: Realtime output from NSSlider
  • Next by Date: Audio CD Naming
  • Previous by thread: Realtime output from NSSlider
  • Next by thread: Audio CD Naming
  • Index(es):
    • Date
    • Thread