Re: can't hide scrollbar on NSTableView
Re: can't hide scrollbar on NSTableView
- Subject: Re: can't hide scrollbar on NSTableView
- From: Corbin Dunn <email@hidden>
- Date: Wed, 06 Jun 2012 13:51:06 -0700
On Jun 6, 2012, at 9:54 AM, Koen van der Drift <email@hidden> wrote:
> On Wed, Jun 6, 2012 at 12:42 PM, Corbin Dunn <email@hidden> wrote:
>
>> It has a scroller there because it has scrollable area.
>
> Yes, but it should hide when I am not scrolling (as was the case when
> taking the screenshot).
Okay; we are talking about two different things!
Automatically Hide scroller makes it come and go depending on content. But what you are talking about is the NSScrollerStyle of overlay that makes them disappear when nothing is touching them, *and* you have a touch enabled device (track pad, magic mouse,etc). The latter is an option in preferences; make sure you have it set to automatically hide scrollers (or, always hide them, even if you have a regular mouse).
Just call setScrollerStyle to NSScrollerStyleOverlay to force it on. NSScrollView decides if it can be on or off by default using a special algorithm; you might be tripping it up by having a view that intersects with the scroll area, so you can just force it always to be overlay.
Hopefully this clears up that property and the difference.
corbin
>
>> All I can guess is that something has some scrollable area or the property is reset somewhere (and you don't expect it to be reset). Also look for non pixel aligned things; things could be off by 0.5 and it might cause a scroller to appear but not scroll anything.
>>
>> corbin
>
> I wonder if it has to do with switching from cell based to view based
> NSTableViews. I'll look into that later tonight.
>
> - Koen.
_______________________________________________
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