Returns the names of the types to which this document can be saved for a specified kind of save operation.
- macOS 10.4+
The kind of save operation.
An array of
NSString objects representing the writable document types.
The save operation type is represented by
save. For every kind of save operation except
NSSave, the returned array must only include types for which the the app can play the Editor role. For
NSSave the returned array may include types for which the app can only play the Viewer role, and other types that the app can merely export. The default implementation of this method returns
[[self class] writable with, except during
NSSave, types for which
false filtered out.
You can override this method to limit the set of writable types when the document currently contains data that is not representable in all types. For example, you can disallow saving to RTF files when the document contains an attachment and can only be saved properly to RTFD files.
You can invoke this method when creating a custom save panel accessory view to present easily the same set of types as
NSDocument does in its standard file format popup menu.