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

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

  • Follow-Ups:
    • Re: NSFileManager fun & games
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: NSTableView
  • Next by Date: Re: Strangeness when moving data through an array.
  • Previous by thread: Re: NSTableView
  • Next by thread: Re: NSFileManager fun & games
  • Index(es):
    • Date
    • Thread