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


The biggest plugin in space...