MonobjcMonobjc Documented Class Library
NSPortMessage Constructor (sendPort, receivePort, components)
NamespacesMonobjc.FoundationNSPortMessageNSPortMessage(NSPort, NSPort, NSArray)

Initializes a newly allocated NSPortMessage object to send given data on a given port and to receiver replies on another given port.

Original signature is '- (id)initWithSendPort:(NSPort *)sendPort receivePort:(NSPort *)receivePort components:(NSArray *)components'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSPortMessage(
	NSPort sendPort,
	NSPort receivePort,
	NSArray components
)
Public Sub New ( _
	sendPort As NSPort, _
	receivePort As NSPort, _
	components As NSArray _
)
public:
NSPortMessage(
	NSPort^ sendPort, 
	NSPort^ receivePort, 
	NSArray^ components
)
Parameters
sendPort (NSPort)
The port on which the message is sent.
receivePort (NSPort)
The port on which replies to the message arrive.
components (NSArray)
The data to send in the message. components should contain only NSData and NSPort objects, and the contents of the NSData objects should be in network byte order.
Return Value
An NSPortMessage object initialized to send components on sendPort and to receiver replies on receivePort.
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)