Deprecated NSPort Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Available in iOS 2.0 through iOS 4.3
allocWithZone:
Returns an instance of the NSMachPort class. (Available in iOS 2.0 through iOS 4.3.)
+ (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 iOS 2.0 through iOS 4.3.
Declared In
NSPort.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-04-13)