Instance Method

initWithListenerEndpoint:

Initializes an NSXPCConnection object to connect to an NSXPCListener object in another process, identified by an NSXPCListenerEndpoint object.

Declaration

- (instancetype)initWithListenerEndpoint:(NSXPCListenerEndpoint *)endpoint;

Parameters

endpoint

The desired listener endpoint for the service.

See Also

Creating Connections

- initWithMachServiceName:options:

Initializes an NSXPCConnection object to connect to a LaunchAgent or LaunchDaemon with a name advertised in a launchd.plist.

NSXPCConnectionOptions

Options that you can pass to a connection.

- initWithServiceName:

Initializes an NSXPCConnection object to connect to an NSXPCListener object in an XPC service, identified by a service name.