• 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: List files & put into an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List files & put into an array


  • Subject: Re: List files & put into an array
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 3 Jun 2003 11:22:09 -0700

On Monday, June 2, 2003, at 01:27 PM, Chad Armstrong wrote:

Okay, yet another question which I didn't find an immediate answer to from searching.

What is a good way to retrieve a list of file names from a directory (~/Documents) and put them into list, such as an NSArray? I just need the names of the files, not the info (size, permissions, etc.) associated with them.

Sounds like a job for NSDirectoryEnumerator..

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >List files & put into an array (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Editing NSBrowser Cells
  • Next by Date: Save Any Color
  • Previous by thread: Re: List files & put into an array
  • Next by thread: Irregularly Shaped NSView
  • Index(es):
    • Date
    • Thread