• 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: Charles Srstka <email@hidden>
  • Date: Wed, 1 Dec 2004 02:04:05 -0600

On Dec 1, 2004, at 12:29 AM, Duncan Campbell wrote:

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?

I haven't tried it myself, but - [NSFileManager componentsToDisplayForPath:] looks like it might be what you need.

Charles
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSFileManager fun & games
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: NSFileManager fun & games
  • Next by Date: Off-screen Printing
  • Previous by thread: Re: NSFileManager fun & games
  • Next by thread: Re: NSFileManager fun & games
  • Index(es):
    • Date
    • Thread