NSFontPanel access and NSTextView without noncontiguous layout produce text drawing glitches

Number:rdar://36650289 Date Originated:2018-01-19
Status:Open Resolved:
Product:macOS + SDK Product Version:
Classification:UI/Usability Reproducible:always


When noncontiguous layout is disabled and -[NSFontManager fontPanel:] is called with "create = true", then the text view will fail to update itself properly when writing text.

Steps to Reproduce:

- disable noncontiguous layout on the text view
- create the fontPanel early on (e.g. during applicationDidFinishLaunching)
- enter text into the last line of the text view
- prepend this last line with new lines by hitting enter, moving it down

Expected Results:

- the last line of text would draw 1 line further down with each press of the Enter key

Actual Results:

- the last line of text disappears for a split second, then reappears (in the next drawing pass?) at the expected location


Xcode Version 9.2 (9C40b)
macOS 10.13.2 (17C205)


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!