Platforms to show: All Mac Windows Linux Cross-Platform

NSEnumeratorMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa MBS MacCocoa Plugin 9.8 Yes No No Yes, macOS only No
Function: NSEnumerator is an abstract class, instances of whose subclasses enumerate collections of other objects, such as arrays and dictionaries.
dim d as new NSDirectoryEnumeratorMBS(SpecialFolder.Desktop)
MsgBox d.nextObject
You send nextObject repeatedly to a newly created NSEnumerator object to have it return the next object in the original collection. When the collection is exhausted, nil is returned. You cannot "reset" an enumerator after it has exhausted its collection. To enumerate a collection again, you need a new enumerator.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

Sub classes:

Blog Entries

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

NSDraggingSessionMBS   -   NSEPSImageRepMBS

The biggest plugin in space...

MBS FileMaker tutorial videos