Skip navigation.
 
mlRe: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]
FROM : Sean McBride
DATE : Thu May 22 22:43:58 2008

On 5/21/08 10:35 PM, Jens Alfke said:

>In general you're better off checking the filename extension. (I know. 
>I used to be rabidly in favor of HFS types over extensions, but I gave 
>up that fight years ago...)


In general you're better off checking the UTI.
<http://developer.apple.com/macosx/uniformtypeidentifiers.html>

--
____________________________________________________________
Sean McBride, B. Eng                <email_removed>
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada