NSWebArchiveTextDocumentType Should Be Available On iOS

Originator:AriXmail
Number:rdar://17274999 Date Originated:11-Jun-2014 01:46 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 iOS has full support for web archives, but some operations require passing the web archive document type itself into the NSAttributedString API.

The web archive document type is available under the symbol NSWebArchiveTextDocumentType on both iOS and Mac, but it is not explicitly exported in the UIKit NSAttributedString additions header file. This symbol should be publicly available so that developers don't have to resort to manually passing the string @"NSWebArchive".

Steps to Reproduce:
1. Look at <UIKit/NSAttributedString.h>


Expected Results:
The file should include NSWebArchiveTextDocumentType

Actual Results:
The file only exports document types for plain text, RTF, RTFD, and HTML.

Version:
iOS 8.0 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!