Type Property

modificationTime

The value of this attribute is an NSDate object containing the modification date of the document contents.

Declaration

static let modificationTime: NSAttributedString.DocumentAttributeKey

See Also

Keys

static let author: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing author name.

static let backgroundColor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSColor object representing the document-wide page background color.

static let bottomMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let category: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing the document’s category.

static let characterEncoding: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing integer specifying NSStringEncoding for the file; default for plain text is the default encoding. This key in options can specify the string encoding for reading the data. Upon return, the document attributes can contain the actual encoding used. For writing methods, this value is used for generating the plain text data.

static let cocoaVersionDocumentAttribute: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float. For RTF files only, stores the version of Cocoa with which the file was created. Absence of this value indicates RTF file not created by Cocoa or its predecessors.

static let comment: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document comments.

static let company: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing company or organization name.

static let converted: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing an int. Indicates whether the file was converted by a filter service.

static let copyright: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document copyright info.

static let creationTime: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSDate object containing the creation date of the document; note that this is not the file system creation date of the file, but of the document.

static let defaultTabInterval: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float. Represents the document-wide default tab stop interval.

static let editor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing name of person who last edited the document.

static let excludedElements: NSAttributedString.DocumentAttributeKey

An NSArray object containing NSString objects, representing HTML elements not to be used in generated HTML.

static let fileType: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object indicating which document type was used to interpret the document, specified as a UTI; for reading, this is available along with documentType, but for writing the two are mutually exclusive.

static let hyphenationFactor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float; 0 = off, 1 = full hyphenation.

static let keywords: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSArray object containing NSString objects, containing keywords.

static let leftMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let manager: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing the name of the author's manager.

static let paperSize: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing NSSize.

static let prefixSpaces: NSAttributedString.DocumentAttributeKey

An NSNumber object containing an integer (default 0) representing the number of spaces per level by which to indent certain nested HTML elements.

static let readOnly: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing an integer. If missing or 0 or negative, not read only; 1 or more, read only.

static let rightMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let subject: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing subject of document.

static let textEncodingName: NSAttributedString.DocumentAttributeKey

An NSString object containing the name, IANA or otherwise, of a text encoding to be used; mutually exclusive with characterEncoding.

static let title: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document title.

static let topMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let viewMode: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing an int; 0 = normal; 1 = page layout (use value of @"PaperSize").

static let viewSize: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing NSSize.

static let viewZoom: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing a float. 100 = 100% zoom.