NSWorkspace getInfoForFile weirdness
NSWorkspace getInfoForFile weirdness
- Subject: NSWorkspace getInfoForFile weirdness
- From: Luc Heinrich <email@hidden>
- Date: Sat, 27 Oct 2001 23:15:03 +0200
According to the FM, [NSWorkspace getInfoForFile: application: type:] is
supposed to return a specific constant value (NSPlainFileType,
NSDirectoryFileType, etc) in the pointed 'type' argument. This does not
seem to be true.
For example, "/path/to/a/textfile.txt" returns "txt" as the type.
The path, "/path/to/a/sourcefile.mm" returns "m" as the type.
The path, "/path/to/a/directory" returns "" as the type.
WTF ?!??! Am I missing something ?
--
Luc - email@hidden