Specifies the file type (as an extension) or a UTI.
- macOS 10.0–10.6Deprecated
String to set as the extension to be appended to any selected files that don’t already have that extension.
type is an extension, it should not include the period that begins the extension. Pass
nil to indicate any type. File type strings encoding HFS file types are not valid values for this attribute. You need to invoke this method each time the Save panel is used for another file type within the application.
This method is equivalent to using
allowed with an array containing only
type is nil, and then it’s equivalent to setting the property to