Initializes a newly allocated NSMachPort object with a given Mach port and the specified options.
Original signature is '- (id)initWithMachPort:(uint32_t)machPort options:(NSUInteger)options'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
public NSMachPort( uint machPort, NSUInteger options )
Public Sub New ( _ machPort As UInteger, _ options As NSUInteger _ )
public: NSMachPort( unsigned int machPort, NSUInteger options )

- machPort (UInt32)
- The Mach port for the new port. This parameter should originally be of type mach_port_t.
- options (NSUInteger)
- Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see “Mach Port Rights.”

Returns an initialized NSMachPort object that uses machPort to send or receive messages. The returned object might be different than the original receiver

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)