NSAttributedString drawAtPoint behaves oddly when the string contains images

Originator:peter
Number:rdar://48801500 Date Originated:
Status:Open Resolved:
Product:Foundation Product Version:Mojave 10.14.3
Classification:UI/Usability Reproducible:Always
 
An NSAttributedString containing inline images displays fine in an NSTextView.
But drawn with NSAttributedString drawAtPoint: it draws incorrectly. If the view is
set to FLIPPED, then the images are drawn, but the text is drawn over the top of
them (as if the images are in the background and take up no room). If the view is
set to NOT FLIPPED, then the images are not drawn at all (or if they are drawn,
they are not drawn anywhere visible).

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!