Instance Method

encodePortObject:

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

Declaration

- (void)encodePortObject:(NSPort *)aport;

Parameters

aPort

The port to encode.

Discussion

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 encodeWithCoder: method so that the appropriate kernel information for the port can be encoded. A subclass of NSPortCoder should not encode an NSPort by sending it an encodeWithCoder: message. See Subclassing NSCoder for more information.

See Also

Encoding NSPort Objects

- decodePortObject

Decodes and returns an NSPort object that was previously encoded with any of the general encode...Object: messages.

Deprecated