Important: The information in this document is obsolete and should not be used for new development.
NSPort is an abstract class that represents a communication channel to or from another NSPort, which typically resides in a different thread or task.
To receive incoming messages, NSPorts must be added to an NSRunLoop as input sources.
Creates a new NSPort object capable of both sending and receiving messages.
public NSPort
()
Creates a newly allocated NSPort object to use the Mach port machPort.
public NSPort
(int machPort)
Depending on the access rights for machPort, the new NSPort may only be able to send messages.
Returns the receiver’s delegate.
public Object delegate
()
Marks the receiver as invalid.
public void invalidate
()
Returns false
if the receiver is known to be invalid, true
otherwise (an NSPort only notes that it has become invalid when it tries to send or receive a message).
public boolean isValid
()
An NSPort becomes invalid when its underlying communication resource, which is operating system dependent, is closed or damaged.
public void setDelegate
(Object anObject)
Sets the receiver’s delegate to anObject.
© 1997, 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-07-24)