NSScrollView not redrawing properly in 10.14 beta 3 when building with 10.14 SDK

Originator:gnachman
Number:rdar://42228044 Date Originated:7/15/2018
Status:Open Resolved:
Product:AppKit Product Version:10.14
Classification: Reproducible:
 
Area:
AppKit

Summary:
macOS 10.14 beta 3 does not cause drawRect: to be called on a NSScrollView's documentView when it scrolls in my application. The bug only occurs if you build with the 10.14 SDK.


Steps to Reproduce:
1. Clone iTerm2 (https://github.com/gnachman/iTerm2)
2. Check out commit ccd56bf2d148815eb21537eb072458c7997a4561
3. Build and run with 10.14 SDK and Xcode 10
4. Disable GPU rendering in Prefs>General
5. Produce more than one screenful of output
6. Scroll up

Expected Results:
Content is visible after scrolling

Actual Results:
The window contents are not drawn. drawRect: never gets called. A solid color area appears where newly revealed content should appear.

I was able to work around it in commit 7ce65347493c699c4eab288e37f97d0cac98fe92 by explicitly telling the document view to redraw when the scrollview scrolls.

Although copiesOnScroll is off on the scrollview, turning it on did not fix the issue.

Version/Build:
macOS 10.14 Beta (18A326h)
Xcode Version 10.0 beta 3 (10L201y)

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!