O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSDirectoryEnumerator — Mac OS X 10.0

Synopsis

This subclass of NSEnumerator enumerates the contents of a directory at a specified path. The objects returned by the directory enumerator are strings of the pathnames of all files and subdirectories contained within the directory represented by the enumerator. Enumeration is recursive; that is, the contents of a child directory will be enumerated when encountered. Instances of this class are returned by the NSFileManager method enumeratorAtPath:.

image with no caption

@interface NSDirectoryEnumerator : NSEnumerator
                                  // Instance Methods
   - (NSDictionary *)directoryAttributes;
   - (NSDictionary *)fileAttributes;
   - (void)skipDescendents;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required