Encodes a given port so it can be properly reconstituted in the receiving process or thread.
- macOS 10.0–10.13Deprecated
The port to encode.
This method is primarily for use by
NSPort objects themselves—you can always use the general
encode...Object: methods to encode any object.
NSPort invokes this method in its
encode method so that the appropriate kernel information for the port can be encoded. A subclass of
NSPort should not encode an
NSPort by sending it an
encode message. See Subclassing NSCoder for more information.