Re: How to use NSDirectoryEnumerator class
Re: How to use NSDirectoryEnumerator class
- Subject: Re: How to use NSDirectoryEnumerator class
- From: Thomas Harrington <email@hidden>
- Date: Fri, 20 Jun 2003 12:34:38 -0600
On Friday, June 20, 2003, at 03:06 AM, Sebastien TOPIN wrote:
I am trying to retrieve all file pathnames from a given directory. I
found
NSDirectoryEnumerator class but the documentation doesn't explain how
to use
it.
Looks like you get one using -[NSFileManager enumeratorAtPath]. After
that, the directory enumerator subclasses NSEnumerator, so use it like
any other enumerator.
Is it the good class for that?
Depends on what you're doing. -[NSFileManager directoryContentsAtPath]
is another possibility.
--
Tom Harrington
email@hidden
_______________________________________________
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.