Instance Method


Marks the receiver as invalid and posts an didBecomeInvalidNotification to the default notification center.


func invalidate()


You must call this method before releasing a port object (or removing strong references to it if your application is garbage collected).

See Also


var isValid: Bool

A Boolean value that indicates whether the receiver is valid.

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