• 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
NSScroller: Hiding the knob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScroller: Hiding the knob


  • Subject: NSScroller: Hiding the knob
  • From: Kurt Sutter <email@hidden>
  • Date: Wed, 20 Apr 2011 13:38:08 +0200

Here's probably a stupid question, but I am unable to figure this out:

NSScrollView on MacOS X 10.6 and before _hides_ the knob of a scroller when its proportion becomes 1 or larger, i.e. when all of the view is visible along the direction of the scroller and there is nothing to scroll.

I have a custom view using its own scrollers (NSScroller) because NSScrollView does not allow to do what I need. However, I am unable to make the knob disappear  when all of the view is visible along the scroller. I have tried calling setKnobProportion: with values of 0, 1, 2 or -1, but the knob is always there, with varying size.

I guess I could override drawKnob, but that sounds hack-ish.

Does anyone know what to do?

Thanks for any advice in advance

Kurt Sutter

_______________________________________________

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: NSScroller: Hiding the knob
      • From: Peter Zegelin <email@hidden>
  • Prev by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Next by Date: MPMusicPlayerController playbackState
  • Previous by thread: Re: How to simulate key press events
  • Next by thread: Re: NSScroller: Hiding the knob
  • Index(es):
    • Date
    • Thread