requiredFileType
Returns the required file type (if any).
Declaration
- (NSString *) requiredFileType;Return Value
The required file type (if any).
Discussion
A file specified in the Save panel is saved with the designated filename and this file type as an extension. Examples of common file types are “rtf”, “tiff”, and “ps”. File type strings encoding HFS file types are not valid values for this attribute. An nil return value indicates that the user can save to any ASCII file.
This method is equivalent to using allowedFileTypes and returning the first element of the list of allowed types, or nil if there are none.
See Also
Methods
allowedFileTypessetRequiredFileType:setDirectory:beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:runModalForDirectory:file:panel:compareFilename:with:caseSensitive:panel:isValidFilename:panel:shouldShowFilename:panel:directoryDidChange:directoryfilenameselectText: