Platforms to show: All Mac Windows Linux Cross-Platform
NSXPCConnectionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This class is the primary means of creating and configuring the communication mechanism between two processes. Each process has one instance of this class to represent the endpoint in the communication channel.
Requires a setup with info.plist entries, correct permissions and code signing.
- 4 events
- event CallMethodReturned(name as string, tag as Variant, Parameters() as Variant, Results() as Variant)
- event ErrorHandler(error as NSErrorMBS)
- event InterruptionHandler
- event InvalidationHandler
- 7 properties
- property auditSessionIdentifier as Integer
- property effectiveGroupIdentifier as Integer
- property effectiveUserIdentifier as Integer
- property endpoint as NSXPCListenerEndpointMBS
- property Handle as Integer
- property processIdentifier as Integer
- property serviceName as String
- 9 methods
- method CallMethod(name as string, tag as Variant, params() as Variant)
- method Close
- method Constructor(endpoint as NSXPCListenerEndpointMBS)
- method Constructor(MachOServiceName as string, flags as Integer)
- method Constructor(ServiceName as string)
- method Destructor
- method invalidate
- method resume
- method suspend
- shared method Available as boolean
Constants
Constant | Value | Description |
---|---|---|
NSXPCConnectionPrivileged | 1 |
One of the options that you can pass to a connection.
Use this option if connecting to a service in the privileged Mach bootstrap (for example, a daemon with a launchd.plist in /Library/LaunchDaemons). Available in OS X v10.8 and later. |
This class has no sub classes.
Some events using this class:
- NSXPCListenerMBS.shouldAcceptNewConnection(newConnection as NSXPCConnectionMBS) as boolean
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSWorkspaceMBS - NSXPCListenerEndpointMBS