Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSXPCConnectionMBS class.

NSXPCConnectionMBS.CallMethod(name as string, tag as Variant, params() as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Calls method and passes parameters.

Returns array of variant.

NSXPCConnectionMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Closes the connection.

NSXPCConnectionMBS.Constructor(endpoint as NSXPCListenerEndpointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes an NSXPCConnection object to connect to an NSXPCListener object in another process, identified by an NSXPCListenerEndpoint object.

endpoint: The desired listener endpoint for the service.
Available in OS X v10.8 and later.

See also:

NSXPCConnectionMBS.Constructor(MachOServiceName as string, flags as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes an NSXPCConnection object to connect to a LaunchAgent or LaunchDaemon with a name advertised in a launchd.plist.

For example, if an agent is managed with launchd and has a launchd.plist in ~/Library/LaunchAgents, this method would create a connection to that agent. The agent should use NSXPCListener to wait for new connections.

If the connection is being made to a process that is running in a privileged Mach bootstrap context (for example, a daemon started by a launchd property list in /Library/LaunchDaemons), then pass the NSXPCConnectionPrivileged option.

Available in OS X v10.8 and later.

See also:

NSXPCConnectionMBS.Constructor(ServiceName as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes an NSXPCConnection object to connect to an NSXPCListener object in an XPC service, identified by a service name.

XPC services are helper processes that are usually part of your application bundle. The service should use NSXPCListener to wait for new connections.
Available in OS X v10.8 and later.

See also:

NSXPCConnectionMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The destructor.

NSXPCConnectionMBS.invalidate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Invalidates the connection.

When you call this method, all outstanding reply blocks, error handling blocks, and invalidation blocks are called on the message handling queue. The connection must be invalidated before it is deallocated. After a connection is invalidated, no more messages may be sent or received.

NSXPCConnectionMBS.resume

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Starts or resumes handling of messages on a connection.

All connections start suspended. You must resume them before they start processing received messages or sending messages through the remoteObjectProxy object.
Available in OS X v10.8 and later.

NSXPCConnectionMBS.suspend

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacFrameworks Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Suspends the connection.

Suspends and resumes must be balanced before the connection may be invalidated.
Available in OS X v10.8 and later.

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


The biggest plugin in space...