Instance Method

setDelegate(_:)

Sets the receiver’s delegate to a given object.

Declaration

func setDelegate(_ anObject: NSMachPortDelegate?)

Parameters

anObject

The delegate for the receiver.

See Also

Getting and Setting the Delegate

func delegate() -> NSMachPortDelegate?

Returns the receiver’s delegate.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software