• 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
NSWorkspace getInfoForFile weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWorkspace getInfoForFile weirdness
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Widget Repository?
  • Next by Date: OH MY GOD! AHHHHHHHHHHHHHHH!!!!!!!
  • Previous by thread: Re: NSArray and C array
  • Next by thread: Re: NSWorkspace getInfoForFile weirdness
  • Index(es):
    • Date
    • Thread