NSFileManager fun & games
NSFileManager fun & games
- Subject: NSFileManager fun & games
- From: Duncan Campbell <email@hidden>
- Date: Wed, 1 Dec 2004 17:29:40 +1100
Hi folks,
I'm building a simple file-browser. I used the "OutlineView' example app as a starting point as it is close to doing what i want - however, I notice that the file list it produces (using
<x-tad-smaller>[NSFileManager directoryContentsAtPath:fullPath]) </x-tad-smaller>produces a
complete directory listing, including hidden system-only files - just as if i was doing ls from terminal.
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?
Cheers for any help,
=========================================
Duncan Campbell
http://www.duncanandsarah.com/duncan
=========================================
Don't tell me how hard you work. Tell me how much you get done.
-- James J. Ling
_______________________________________________
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