Returns a Boolean value indicating whether document data of the specified type is a native type—one the receiver can both read and write.
SDK
- macOS 10.0+
Framework
- App
Kit
Returns a Boolean value indicating whether document data of the specified type is a native type—one the receiver can both read and write.
SDK
Framework
var file Type: String?
The name of the document type, as specified in the app’s Info
file.
var file Type From Last Run Save Panel: String?
The file type that was last selected in the Save panel.
class var readable Types: [String]
Returns the types of data the receiver can read natively and any types filterable to that native type.
class func can Concurrently Read Documents(of Type: String) -> Bool
Returns a Boolean value indicating whether the receiver reads multiple documents of the given type concurrently.
class var writable Types: [String]
Returns the types of data the receiver can write natively and any types filterable to that native type.
func writable Types(for: NSDocument .Save Operation Type) -> [String]
Returns the names of the types to which this document can be saved for a specified kind of save operation.
func file Name Extension(for Type: String, save Operation: NSDocument .Save Operation Type) -> String?
Returns a filename extension that can be appended to a base filename, for a specified file type and kind of save operation.