• 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
Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling


  • Subject: Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
  • From: Dave Keck <email@hidden>
  • Date: Sat, 04 Aug 2012 16:00:12 -1000

> I'm unsure of the wisdom of this approach. Presumably the scroll view is intentionally blocking the runloop, and thus assuming that the runloop will not fire its event sources until after the scrolling is complete. By waking up the runloop, you're violating that assumption and could be causing work the scrollview has enqueued to be performed sooner than expected.

During a single scrolling maneuver in 10.8.0, the run loop toggles
many times between NSDefaultRunLoopMode and NSScrollEventCoallescing.
I suppose I could check whether the main run loop is in the default
mode before waking it up, but the overheard of that likely defeats the
purpose, especially considering the inherent race condition. In the
end, waking the main thread up at the wrong time (while it's in
NSScrollEventCoallescing) probably wastes a mach_msg_send, a
mach_msg_receive, and 20 instructions as the scrolling machinery sees
that there's no new event and goes back to sleep or times-out and
returns to the NSApplication loop.

_______________________________________________

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: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
      • From: Mike Abdullah <email@hidden>
References: 
 >10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling (From: Dave Keck <email@hidden>)
 >Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling (From: Quincey Morris <email@hidden>)
 >Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling (From: Dave Keck <email@hidden>)
 >Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
  • Next by Date: compile DrawKit in 10.8
  • Previous by thread: Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
  • Next by thread: Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
  • Index(es):
    • Date
    • Thread