Instance Method

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 initWithCoder: 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 initWithCoder: message. See Subclassing NSCoder for more information.

See Also

Encoding NSPort Objects

- encodePortObject:

Encodes a given port so it can be properly reconstituted in the receiving process or thread.

Deprecated