Re: Slider with tag?
Re: Slider with tag?
- Subject: Re: Slider with tag?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 16 Oct 2009 21:33:20 -0500
- Organization: Rogue Research Inc.
On 10/14/09 10:24 PM, Gabriel Zachmann said:
>Could someone please explain to me how I can present a little tag to
>the user that moves along with a slider's handle (above or below), in
>which I can give some feedback to the user about the current value of
>the slider?
>
>I'm afraid I couldn't find an example, but I think I have seen such a
>thing somewhere ...
You have to do it yourself. You can create a borderless NSWindow for
the 'little tag'. You can use knobRectFlipped to get the thumb's
position. You'll probably also want to use addChildWindow:ordered: to
keep your floating window linked to the slider's window. You can use an
NSTimer to close the window after a short delay.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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