Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSRunLoopMBS class.

NSRunLoopMBS.currentRunLoop as NSRunLoopMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the NSRunLoop object for the current thread.

If a run loop does not yet exist for the thread, one is created and returned.

Some examples using this method:

NSRunLoopMBS.mainRunLoop as NSRunLoopMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the run loop of the main thread.

An object representing the main thread's run loop.
Available in OS X v10.5.

NSRunLoopMBS.NSDefaultRunLoopMode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the runloop mode.

The mode to deal with input sources other than NSConnection objects.
This is the most commonly used run-loop mode.

Some examples using this method:

NSRunLoopMBS.NSRunLoopCommonModes as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the runloop mode.

Objects added to a run loop using this value as the mode are monitored by all run loop modes that have been declared as a member of the set of "common" modes; see the description of CFRunLoopAddCommonMode for details.
Available in OS X v10.5 and later.

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


The biggest plugin in space...