• 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
Determining if a file is hidden?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining if a file is hidden?


  • Subject: Determining if a file is hidden?
  • From: Matt Margush <email@hidden>
  • Date: Wed, 31 Dec 2003 14:57:55 -0800

Hi,

Is there a way to determine if a file is hidden with the Cocoa APIs?
What I'm looking for are files that would not be considered hidden by
the Finder when the "AppleShowAllFiles" defaults setting is set to
false. I have looked at the NSFileManager and NSWorkspace classes but
can't find anything like that. I guess the "hidden-ness" of a file
might be function of the user interface, and not an attribute of the
file itself. However, I was wondering if there is a way to determine
this from a Cocoa api. For example, in Java, the the method
java.io.File.isHidden() returns true in a fairly platform independent
manner... on unix platforms it checks if the filename starts with a
'.', on windows it checks the hidden attribute of the file itself.

Thanks,

Matt

--
It is reasonable to ask what is the ideal, and indeed this question
leads to progress.

[demime 0.98b removed an attachment of type text/directory which had a name of Matt Margush.vcf]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Missing Man Pages? (From: John Rieffel <email@hidden>)

  • Prev by Date: how to convert *.lproj directory to localized language name?
  • Next by Date: Re: People who develop with MySQL and/or other GPL based code
  • Previous by thread: Re: Missing Man Pages?
  • Next by thread: how to convert *.lproj directory to localized language name?
  • Index(es):
    • Date
    • Thread