invalidate()
Marks the receiver as invalid and posts an Didbecomeinvalidnotification to the default notification center.
Declaration
func invalidate()Discussion
You must call this method before releasing a port object (or removing strong references to it if your application is garbage collected).