NSRunLoopMBS shared methods

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

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.


💬 Ask a question or report a problem