Deprecated NSPort Methods

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

Available in OS X v10.0 through OS X v10.6

allocWithZone:

Returns an instance of the NSMachPort class. (Available in OS X v10.0 through OS X v10.6.)

+ (id)allocWithZone:(NSZone *)zone
Parameters
zone

The memory zone in which to allocate the new object.

Return Value

An instance of the NSMachPort class.

Discussion

For backward compatibility on Mach, allocWithZone: returns an instance of the NSMachPort class when sent to the NSPort class. Otherwise, it returns an instance of a concrete subclass that can be used for messaging between threads or processes on the local machine, or, in the case of NSSocketPort, between processes on separate machines.

Availability
  • Available in OS X v10.0 through OS X v10.6.
Declared In
NSPort.h