Initializes a newly allocated
NSMach object with a given Mach port.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The Mach port for the new port. This parameter should originally be of type mach_port_t.
Returns an initialized
NSMach object that uses
mach to send or receive messages. The returned object might be different than the original receiver
Depending on the access rights for
mach, the new port may be able to only send messages. If a port with
mach already exists, this method deallocates the receiver, then retains and returns the existing port.
This method is the designated initializer for the