• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWorkspace getInfoForFile weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWorkspace getInfoForFile weirdness
      • From: Ben Hines <email@hidden>
    • Re: NSWorkspace getInfoForFile weirdness
      • From: Luc Heinrich <email@hidden>
References: 
 >NSWorkspace getInfoForFile weirdness (From: Luc Heinrich <email@hidden>)

  • Prev by Date: Re: NSArray and C array
  • Next by Date: Re: Menu Extras, Preference Panes, and HIServices.framework
  • Previous by thread: NSWorkspace getInfoForFile weirdness
  • Next by thread: Re: NSWorkspace getInfoForFile weirdness
  • Index(es):
    • Date
    • Thread