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 09:42:18 -0700
On Jun 5, 2012, at 4:44 PM, Koen van der Drift <email@hidden> wrote:
>
> On Jun 5, 2012, at 7:16 PM, Corbin Dunn wrote:
>
>>
>> On Jun 4, 2012, at 11:48 AM, Koen van der Drift <email@hidden> wrote:
>>
>>> Ok, I'm stumped here. I have a few scrollable views in my window, two
>>> NSTableViews, and an NSTextView. I'd like to have the scrollbar to
>>> hide when not in use, and used the setting of the NSScrollView in IB
>>> in Xcode to do so. For the NSTextView it works, but for the
>>> NSTableViews the scrollbar won't hide, and are also much wider. The
>>> scrollbar settings are exactly the same for all three NSScrollViews.
>>>
>>> What am I missing here, is there another secret setting?
>>
>> What settings are you referring to?
>> By hide, do you mean autohide scrollers when not needed, or not used? The later is also dependent on the OS settings for your mouse.
>
> I am referring to "Automatically hide scroller" and "Show vertical scroller", these are both on for all three views. In the textview the scrollbar behaves as expected, in the tableview, the scrollbar is always visible. The scrollbar on the tableviews has a visible 'gutter' as was the case pre-lion and is also drawn in a slightly lighter shade of gray. All other apps I use (including the TableViewPlayground code example from Apple) have the expected behavior.
>
> Here's a screenshot, hope this works:
>
> http://dl.dropbox.com/u/41198645/Screen Shot 2012-06-05 at 7.36.44 PM.png
>
> You can see the scrollbar on the right, the 'gutter' and scrollknob are always visible.
It has a scroller there because it has scrollable area.
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
_______________________________________________
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