Re: NSWorkspace getInfoForFile weirdness
Re: NSWorkspace getInfoForFile weirdness
- Subject: Re: NSWorkspace getInfoForFile weirdness
- From: Ondra Cada <email@hidden>
- Date: Sun, 28 Oct 2001 10:42:45 +0100
Luc,
>
>>>>> Luc Heinrich (LH) wrote at Sat, 27 Oct 2001 23:15:03 +0200:
LH> According to the FM, [NSWorkspace getInfoForFile: application: type:] is
LH> supposed to return a specific constant value (NSPlainFileType,
LH> NSDirectoryFileType, etc) in the pointed 'type' argument. This does not
LH> seem to be true.
Neither it is said by TFM, which you seemingly R too quickly:
=== NSWorkspace.html ===
...
getInfoForFile:application:type:
- (BOOL)getInfoForFile:(NSString *)fullPath
application:(NSString **)appName
type:(NSString **)type
Retrieves information about the file specified by fullPath. If this method
returns YES, the NSString pointed to by appName is set to the application the
system would use to open fullPath. The NSString pointed to by type contains
one of the following values __or a file name extension such as "rtf"__
indicating the file's type
...
=== cut here ===
(underscores by me)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc