NSAttributedString Should Support Microsoft/OpenOffice/iWork Document Formats

Originator:AriXmail
Number:rdar://17275138 Date Originated:11-Jun-2014 01:53 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8 beta 1
Classification: Reproducible:Always
 
Summary:
iOS 7 introduced NSAttributedString document reading/writing, allowing rich text to be converted between NSAttributedStrings and files. NSAttributedString on the Mac includes support for .doc, .docx, and .odf files, but this functionality is missing on iOS. Additionally, support for Apple's iWork document formats would be useful on both platforms.

Steps to Reproduce:
1. Compare the iOS SDK's <UIKit/NSAttributedString.h> header to the Mac SDK's <AppKit/NSAttributedString.h>

Expected Results:
The same document types should be exported, including Word and OpenOffice types.

Actual Results:
The iOS SDK is missing NSDocFormatTextDocumentType, NSWordMLTextDocumentType, NSOfficeOpenXMLTextDocumentType, NSOpenDocumentTextDocumentType. Additionally, this functionality is not even present using private APIs.

The iOS SDK is also missing NSWebArchiveTextDocumentType, but this functionality is actually included in the SDK if you supply the string constant manually (see rdar://17274999)

Version:
iOS 8 seed 1

Notes:


Configuration:
Xcode 6 seed 1

Attachments:

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!