Platforms to show: All Mac Windows Linux Cross-Platform

NSDirectoryEnumeratorMBS class

Super class: NSEnumeratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
An NSDirectoryEnumerator object enumerates the contents of a directory, returning the pathnames of all files and directories contained within that directory.
Example
dim d as new NSDirectoryEnumeratorMBS(SpecialFolder.Desktop)
dim f as string = d.nextObject

while len(f)>0
List.AddRow f

f=d.nextObject
wend

These pathnames are relative to the directory.

An enumeration is recursive, including the files of all subdirectories, and crosses device boundaries. An enumeration does not resolve symbolic links, or attempt to traverse symbolic links that point to directories.
Subclass of the NSEnumeratorMBS class.

Super class NSEnumeratorMBS

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS MacBase Plugin.


NSDatePickerMBS   -   NSDistributedNotificationCenterMBS


The biggest plugin in space...