cocoaVersionDocumentAttribute
The version of Cocoa that created the file.
Declaration
static let cocoaVersionDocumentAttribute: NSAttributedString.DocumentAttributeKeystatic let cocoaVersion: NSAttributedString.DocumentAttributeKeyDiscussion
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.
Values less than 100 are pre–macOS; 100 is macOS 10.0 or 10.1; 102 is macOS 10.2 and 10.3; values greater than 102 correspond to values of NSAppKitVersionNumber in macOS 10.4 and later.
The string constant in macOS 10.3 and earlier is @"CocoaRTFVersion".