Re: searching the ADC Reference Library
Re: searching the ADC Reference Library
- Subject: Re: searching the ADC Reference Library
- From: Matt Neuburg <email@hidden>
- Date: Thu, 26 Apr 2007 12:55:03 -0700
- Thread-topic: searching the ADC Reference Library
On Thu, 26 Apr 2007 11:23:53 -0600, Roland Silver <email@hidden>
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@hidden, <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>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden