NSEnumeratorMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

NSEnumeratorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
NSEnumerator is an abstract class, instances of whose subclasses enumerate collections of other objects, such as arrays and dictionaries.
Example
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.

Sub classes:

Blog Entries


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


NSEdgeInsetsMBS   -   NSEPSImageRepMBS


💬 Ask a question or report a problem