• 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
NSScrollView automatically changes scroller styles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView automatically changes scroller styles?


  • Subject: NSScrollView automatically changes scroller styles?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 27 Mar 2012 14:09:00 -0600

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 (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

  • Follow-Ups:
    • Re: NSScrollView automatically changes scroller styles?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
  • Next by Date: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
  • Previous by thread: Re: mogenerator and key path error
  • Next by thread: Re: NSScrollView automatically changes scroller styles?
  • Index(es):
    • Date
    • Thread