Some NSTextAttachment accessors don't work as expected after NSKeyedArchiver archive/unarchive cycle
| Originator: | sw | ||
| Number: | rdar://16195154 | Date Originated: | 28-Feb-2014 01:58 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0.6 |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: On archiving then unarchiving an NSTextAttachment object with a UIImage payload, the contents, image and bounds properties all return null values. However, the image can be retrieved from the object's fileWrapper property. This means that, for example, an NSAttributedString with a text attachment will "lose" its attachment when saved to a Core Data attribute of type NSTransformableAttributeType. Steps to Reproduce: 1. Open the attached project (http://d.pr/f/kBFC/B3yaPwdX) in Xcode 5.0.2 and run on iOS 7.0 Expected Results: The unarchived NSTextAttachment object should yield an image when its -image method is called Actual Results: The unarchived NSTextAttachment object doesn't yield an image, although it can be reconstructed from the object's fileWrapper property. Regression: Not known Notes: n/a
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!