Has anyone successfully used the NSFoundation function call NSHFSTypeCodeFromFileType()? I'm passing it a four character NSString, but it's always returning zero. I am, naively perhaps, assuming that NSHFSTypeCodeFromFileType will take any four character NSString and turn it into an OSType, not just file types that the system knows about.