• 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
Setting a NSScrollView's Scroll Amount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting a NSScrollView's Scroll Amount


  • Subject: Setting a NSScrollView's Scroll Amount
  • From: Dave Keck <email@hidden>
  • Date: Sun, 28 Mar 2004 23:43:51 -0500

Greetings,

I have a NSScrollView that contains a whole bunch of views that are the same size and are arranged vertically, to form a list-like structure. Right now, using setVerticalLineScroll: I'm restricting scrolling to 10 pixels every time the user clicks the up or down arrow in the scroll view. But the problem with this is, if the user uses the knob in the scroller (the big blue blob thing) to scroll, instead of the arrows at the bottom of the scroller, the NSScrollView doesn't restrict scrolling to 10 pixels, but rather, scrolls 1 pixel at a time, regardless of what I've set using setVerticalLineScroll:.

Is there a way to restrict the scrolling increment of a NSScrollView - when using the knob rather than the arrows - to a specified amount? (By the way, iTunes does this when scrolling through songs using the knob, but it uses a list view rather than a scroll view, so I'm not sure if that means much...)

Thanks very much for any insight!

Dave
_______________________________________________
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.


  • Follow-Ups:
    • Re: Setting a NSScrollView's Scroll Amount
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: Re: NSAppleScript leaking memory?
  • Previous by thread: Re: Cmd + arrows = no keyUp event?
  • Next by thread: Re: Setting a NSScrollView's Scroll Amount
  • Index(es):
    • Date
    • Thread