• 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: NSFileManager fun & games
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager fun & games


  • Subject: Re: NSFileManager fun & games
  • From: Andrew Farmer <email@hidden>
  • Date: Tue, 30 Nov 2004 23:35:02 -0800

On 30 Nov 2004, at 22:29, Duncan Campbell wrote:
I would like to only produce the list of files/folder you get when you click on the "Macintosh HD" icon on the desktop - i.e. beginning with "Applications", not showing any of the "." files/folders (hidden) etc.... - is there a method to produce this list?

Obviously I could just look for a "." as the 1st char of the filename, but it seems there would be a method that gives me what i am after, based on permissions etc?

Compare the first character to a period. You had it right the first time.


This won't hide folders with the Hidden bit set (like /etc), though, so you'll have to dig around with Carbon to get that information.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSFileManager fun & games (From: Duncan Campbell <email@hidden>)

  • Prev by Date: Re: Strangeness when moving data through an array.
  • Next by Date: Re: Strangeness when moving data through an array.
  • Previous by thread: NSFileManager fun & games
  • Next by thread: Preventing menu shortcuts
  • Index(es):
    • Date
    • Thread