Re: NSDirectoryEnumerator question
Re: NSDirectoryEnumerator question
- Subject: Re: NSDirectoryEnumerator question
- From: James Bucanek <email@hidden>
- Date: Sat, 10 Feb 2007 09:00:49 -0700
Simon Raisin wrote on Saturday, February 10, 2007:
>I am using NSDirectoryEnumerator to process files and directories. I'd like
>to know how I can obtain the file|directory name using the object returned
>from [enumerator nextObject].
The object returned from nextObject *is* the path to the item. It's an NSString. See the example code in the documentation for enumeratorAtPath:.
<file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/enumeratorAtPath:>
--
James Bucanek
_______________________________________________
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