Deprecated NSPortCoder Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.7

portCoderWithReceivePort:sendPort:components:

Creates and returns a new NSPortCoder object. (Deprecated in OS X v10.7.)

+ (id)portCoderWithReceivePort:(NSPort *)rcvPort sendPort:(NSPort *)sndPort components:(NSArray *)comps
Parameters
receiverPort

The receiver port.

sendPort

The send port.

components

An array containing an encoded distributed objects message.

Return Value

A new NSPortCoder object connected to the communication ports receiverPort and sendPort, with an encoded distributed objects message stored in components.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSPortCoder.h

connection

Returns the NSConnection object that uses the receiver. (Deprecated in OS X v10.7.)

- (NSConnection *)connection
Return Value

The NSConnection object that uses the receiver. In an object’s encodeWithCoder: method, this is the sending (server) connection. In initWithCoder: this is the receiving (client) connection.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSPortCoder.h

dispatch

Processes and acts upon the distributed object message with which the receiver was initialized. (Deprecated in OS X v10.7.)

- (void)dispatch
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSPortCoder.h

initWithReceivePort:sendPort:components:

Initializes and returns an NSPortCoder object. (Deprecated in OS X v10.7.)

- (id)initWithReceivePort:(NSPort *)receiverPort sendPort:(NSPort *)sendPort components:(NSArray *)components
Parameters
receiverPort

The receive port.

sendPort

The send port.

components

An array containing an encoded distributed objects message.

Discussion

Initializes a newly allocated NSPortCoder object connected to the communication ports receiverPort and sendPort, with an encoded distributed objects message stored in components.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSPortCoder.h