NSMach is a subclass of
Port that can be used as an endpoint for distributed object connections (or raw messaging).
NSMach is an object wrapper for a Mach port, the fundamental communication port in macOS.
NSMach allows for local (on the same machine) communication only. A companion class,
Socket, allows for both local and remote distributed object communication, but may be more expensive than
NSMach for the local case.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
NSMach effectively, you should be familiar with Mach ports, port access rights, and Mach messages. See the Mach OS documentation for more information.