Re: Realtime output from NSSlider
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.