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 |
Returns array of variant.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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 |
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:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS MacFrameworks Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.