• 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: Slider with tag?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Slider with tag?
      • From: "I. Savant" <email@hidden>
References: 
 >Slider with tag? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: File Encryption / Decription
  • Next by Date: Re: Slider with tag?
  • Previous by thread: Slider with tag?
  • Next by thread: Re: Slider with tag?
  • Index(es):
    • Date
    • Thread