Contents

NSHFSTypeCodeFromFileType(_:)

Returns a file type code.

Declaration

func NSHFSTypeCodeFromFileType(_ fileTypeString: String!) -> OSType

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