Skip navigation.
 
mlRe: searching the ADC Reference Library
FROM : Matt Neuburg
DATE : Thu Apr 26 21:55:03 2007

On Thu, 26 Apr 2007 11:23:53 -0600, Roland Silver <<email_removed>>
said:
>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?


I use EasyFind.

Set the search folder to /Developer/ADC Reference
Library/documentation/Cocoa.

Search on File Contents, All Words, Case Insensitive, html files only, using
the search terms "array file" (no quotes).

The search takes about 10 seconds.

Among the found items is something called Locating Directories, in a folder
called LowLevelFileMgmt. This sounds promising, so I open it. I use the
breadcrumbs at the top of the window to go up one level, and sure enough,
under "Organization of This Document" I see a number of promising leads. One
of them, FileManager, leads me to a page that says that NSFileManager can
"Determine the contents of directories."

If I had searched on "directories contents" it would have been better, but I
had no idea that the documentation would call a folder a directory. Still, I
did get there. Total time, less than 30 seconds.

m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>

Related mailsAuthorDate
mlsearching the ADC Reference Library Roland Silver Apr 26, 19:23
mlRe: searching the ADC Reference Library John Stiles Apr 26, 19:30
mlRe: searching the ADC Reference Library Shawn Erickson Apr 26, 19:32
mlRe: searching the ADC Reference Library Shawn Erickson Apr 26, 19:35
mlRe: searching the ADC Reference Library Andy Lee Apr 26, 20:02
mlRe: searching the ADC Reference Library Shamyl Zakariya Apr 26, 20:07
mlRe: searching the ADC Reference Library Andy Lee Apr 26, 20:12
mlRe: searching the ADC Reference Library Matt Neuburg Apr 26, 21:55
mlObjective-C/Cocoa reference manual Roland Silver May 10, 05:24
mlRe: Objective-C/Cocoa reference manual Kirt Cathey May 10, 05:31
mlRe: Objective-C/Cocoa reference manual R.A. Hettinga May 10, 07:27
mlRe: Re: Objective-C/Cocoa reference manual Ryan Poling May 11, 17:17