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

Re: NSScroller: Hiding the knob


  • Subject: Re: NSScroller: Hiding the knob
  • From: Peter Zegelin <email@hidden>
  • Date: Wed, 20 Apr 2011 22:38:19 +1000

Hi Kurt,

I had the same problem. I ended up using:

[myScroller setEnabled:NO];



On 20/04/2011, at 9:38 PM, Kurt Sutter wrote:

> 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

kind regards,

Peter Zegelin
http://www.fracturedsoftware.com
Rondo - MIDI for your mac
MacSimAVR - AVR microcontroller simulator for OS X

_______________________________________________

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

References: 
 >NSScroller: Hiding the knob (From: Kurt Sutter <email@hidden>)

  • Prev by Date: MPMusicPlayerController playbackState
  • Next by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Previous by thread: NSScroller: Hiding the knob
  • Next by thread: MPMusicPlayerController playbackState
  • Index(es):
    • Date
    • Thread