On Jun 6, 2012, at 9:54 AM, Koen van der Drift <koenvanderdr...@gmail.com> 
wrote:

> On Wed, Jun 6, 2012 at 12:42 PM, Corbin Dunn <corb...@apple.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to