Class

NSXPCInterface

An interface that may be sent to an exported object or remote object proxy.

Declaration

@interface NSXPCInterface : NSObject

Overview

This object holds all information about the interface of an exported object or remote object proxy. It describes what messages are allowed, what kinds of objects are allowed as arguments, what the signature of any reply blocks are, and information about additional proxy objects.

Topics

Initializers

+ interfaceWithProtocol:

Returns an NSXPCInterface instance for a given protocol.

Instance Properties

protocol

The Objective-C protocol that this interface is based on.

Instance Methods

- classesForSelector:argumentIndex:ofReply:

Returns the current list of allowed classes that can appear within the specified collection object argument to the specified method.

- interfaceForSelector:argumentIndex:ofReply:

Returns the interface previously set for the specified selector and parameter.

- setClasses:forSelector:argumentIndex:ofReply:

Sets the classes that can appear within the (numerically) specified collection object argument to the specified method.

- setInterface:forSelector:argumentIndex:ofReply:

Configures a specific parameter of a method to be sent as a proxy object instead of copied.

Relationships

Inherits From

See Also

XPC Client

NSXPCProxyCreating

Methods for creating new proxy objects.

NSXPCConnection

A bidirectional communication channel between two processes.