NSPortNameServer

NSPortNameServer provides an object-oriented interface to the port registration service used by the distributed objects system. NSConnection objects use it to contact each other and to distribute objects over the network; you should rarely need to interact directly with an NSPortNameServer.
More...

You get an NSPortNameServer object by using the systemDefaultPortNameServer class method—never allocate and initialize an instance directly. With the default server object you can register an NSPort object under a given name, making it available on the network, and also unregister it so that it can’t be looked up (although other applications that have already looked up the NSPort object can still use it until it becomes invalid). See the NSPort class specification for more information.

Availability

Declaration

Parameters

portName

The name of the port to unregister.

Return Value

YEStrue if successful, otherwise NOfalse.

Discussion

If the operation is successful, the port can no longer be looked up using the name portName. Other applications that already have a reference to the port can continue to use it until it becomes invalid.