Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSXPCListenerMBS class.

NSXPCListenerMBS.CallMethod(Name as string, Parameters() as Variant) as Variant()

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No
Called on the listener side when a method was called on the connection.

Return array of variant for the results.

NSXPCListenerMBS.shouldAcceptNewConnection(newConnection as NSXPCConnectionMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No
Accepts or rejects a new connection to the listener.

To accept the connection, first configure the connection if desired, then call resume on the new connection, then return true.
To reject the connect, return a value of false. This causes the connection object to be invalidated.
In this method, you can also set up properties on the connection object, such as its exported object and interfaces. Be sure to call resume when you are finished configuring the connection object and are ready for it to receive messages.

Some examples using this event:

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


The biggest plugin in space...