• 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: [GREAT]NSScroller trackKnob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GREAT]NSScroller trackKnob


  • Subject: Re: [GREAT]NSScroller trackKnob
  • From: Graham Cox <email@hidden>
  • Date: Fri, 19 Nov 2010 15:05:07 +1100

On 19/11/2010, at 2:51 PM, email@hidden wrote:

> Next question ... how do I get called for the buttons (line up down) and the page up down?


You should be called for all of the parts of the scroller. You can call -hitPart to find out which part of the control was hit. (I just found this out by reading the class documentation, why don't you try that?)

The usual MO is to set the range of the scroller to the total height of the view to be scrolled, less the height of the frame through which it is viewed. You change the value of the scroller to the amount you want to scroll, typically one line (however you define it) for the buttons and one page for the page regions. By using setKnobProportion: you can have a proportional knob as well.

--Graham


_______________________________________________

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: [GREAT]NSScroller trackKnob
      • From: Graham Cox <email@hidden>
References: 
 >Re: NSScroller trackKnob (From: Graham Cox <email@hidden>)
 >Re: [GREAT]NSScroller trackKnob (From: email@hidden)

  • Prev by Date: Re: [GREAT]NSScroller trackKnob
  • Next by Date: Re: [GREAT]NSScroller trackKnob
  • Previous by thread: Re: [GREAT]NSScroller trackKnob
  • Next by thread: Re: [GREAT]NSScroller trackKnob
  • Index(es):
    • Date
    • Thread