Contents

activate()

Activates the connection.

Declaration

func activate()

Discussion

Connections start in an inactive state. You must call activate() on a connection before it can send or receive any messages.

Calling activate() on an active connection has no effect.

For backward compatibility reasons, calling resume() on an inactive and otherwise not suspended NSXPCConnection has the same effect as calling activate(). For new code, prefer activate().

See Also

Managing connection state