File types in Mac

I am not a Mac expert and do not even have one but in my project I need to know what is a type of a file. For example .WAV in Windows means a wave file but in Mac the file type is embedded in the file and not in the name.

I think the File class should have some method to get the file type in a platform independent way, currently it has only getFileExtension() method.

Maybe it exists somewhere but I didn’t find it…

What it will be for Linux?

You’re looking for PlatformUtilities::getTypeOfFile()

But on OSX they’re trying to move over to file extensions anyway these days.

Thanks, I thought it might be hiding somewhere…anyway I will wait with the Mac version until I am done with the PC and then see about all those issues