I've searched around but didn't see anything relevant. Why would an 
NSScrollView suddenly change its scroller style behind the application's back 
during a resize?

I noticed that, when running an app on a laptop with no external pointer 
connected and the system default set to show scroll bars automatically based on 
input device, an NSScrollView was suddenly changing its scroller style during 
an animation. I set a breakpoint in the debugger, and the stack trace looked 
like this:

    frame #0: 0x00007fff94ca1298 AppKit`-[NSScrollView setScrollerStyle:]
    frame #1: 0x00007fff94661fcc AppKit`-[NSScrollView 
_checkForAccessoryViewsInScrollerAreas] + 1898
    frame #2: 0x00007fff9465f0a7 AppKit`-[NSScrollView _tileWithoutRecursing] + 
57
    frame #3: 0x00007fff9465f050 AppKit`-[NSScrollView _update] + 27
    frame #4: 0x00007fff94664b82 AppKit`-[NSScrollView 
resizeSubviewsWithOldSize:] + 107
    frame #5: 0x00007fff94575996 AppKit`-[NSView setFrameSize:] + 955
    frame #6: 0x00007fff94664838 AppKit`-[NSScrollView setFrameSize:] + 506

The value of $rdx is 0 in frame #0, meaning the calling method is switching the 
scroller style to the "legacy" style. Why is this happening? I'm looking for a 
workaround now, but I was wondering if anyone has seen this before, and if so, 
then how did you work around it? I don't want the scroll view using the legacy 
style for any reason whatsoever.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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