Function

NSHFSTypeCodeFromFileType

Returns a file type code.

Declaration

OSType NSHFSTypeCodeFromFileType(NSString *fileTypeString);

Parameters

fileTypeString

A string of the sort encoded by NSFileTypeForHFSTypeCode().

Return Value

The HFS file type code corresponding to fileTypeString, or 0 if it cannot be found.

See Also

Working with HFS File Types

NSFileTypeForHFSTypeCode

Returns a string encoding a file type code.

NSHFSTypeOfFile

Returns a string encoding a file type.