decodePortObject
Decodes and returns an NSPort object that was previously encoded with any of the general encode...Object: messages.
Declaration
- (NSPort *) decodePortObject;Return Value
An NSPort object that was previously encoded with any of the general encode...Object: messages.
Discussion
This method is primarily for use by NSPort objects themselves—you can always use decodeObject() to decode any object.
NSPort invokes this method in its init(coder:) method so the appropriate kernel information for the port can be decoded. A subclass of NSPortCoder shouldn’t decode an NSPort by sending it an init(coder:) message. See Subclassing NSCoder for more information.