On 4/26/07, Roland Silver <email@hidden> wrote:
> Mark,
> Thanks for your precise answer to my question:
> Given a folder, how can I create an array of its contents?
>
> How could I have gotten an answer myself? That is, knowing that
> buried somewhere in the ADC Reference Library haystack is a needle
> (which will turn out to be [NSFileManager
> directoryContentsAtPath:path], although I don't know that yet), how
> would I find it, knowing only that I want to create an array of the
> contents of a given folder?
In the Xcode documentation window use "Full-Text Search" and select
the Cocoa search group if you don't know what you are looking for by
name or my favorite method is use Google ("some search terms
site:developer.apple.com").
For example using my Xcode recommendation above with a search term
"directory contents" the second and third things listed directly
answer your question (third one even has a code sample).