Re: NSFileManager fun & games
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