MonobjcMonobjc Documented Class Library
NSMachPort Constructor (machPort, options)
NamespacesMonobjc.FoundationNSMachPortNSMachPort(UInt32, NSUInteger)

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.

Declaration Syntax
C#Visual BasicVisual C++
public NSMachPort(
	uint machPort,
	NSUInteger options
)
Public Sub New ( _
	machPort As UInteger, _
	options As NSUInteger _
)
public:
NSMachPort(
	unsigned int machPort, 
	NSUInteger options
)
Parameters
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.”
Return Value
Returns an initialized NSMachPort object that uses machPort to send or receive messages. The returned object might be different than the original receiver
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)