[Drag&Drop] Unable to load NSAttributedString from text dragged from the Notes app

Originator:michael.der.schwarz
Number:rdar://36729079 Date Originated:01/22/2018
Status:open Resolved:
Product:Notes Product Version:11.x
Classification:Data loss Reproducible:YES
 
Summary:
Dragging text from Notes app into a UITextView leads to an exception when loading objects of class NSAttributedString (although `itemProvider.canLoadObjectOfClass:[NSAttributedString class]` returns `YES`). 

Steps to Reproduce:
Drag content from the Notes app into a UITextView outside of Notes.

Expected Results:
App should be able to load objects of NSAttributedString

Actual Results:
Produces exception and NSAttributedString == nil:

Could not instantiate class NSAttributedString. Error: Error Domain=NSCocoaErrorDomain Code=1024 "*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (TTParagraphStyle) for key (NS.objects); the class may be defined in source code or a library that is not linked" UserInfo={NSLocalizedDescription=*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (TTParagraphStyle) for key (NS.objects); the class may be defined in source code or a library that is not linked}

Version:
11.x

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!