| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in Mac OS X v10.6 and later. |
| Companion guide | |
| Declared in | NSPort.h |
The NSMachPortDelegate protocol defines the optional methods implemented by delegates of NSMachPort objects.
Process an incoming Mach message.
- (void)handleMachMessage:(void *)machMessage
A pointer to a Mach message, cast as a pointer to void.
The delegate should interpret this data as a pointer to a Mach message beginning with a msg_header_t structure and should handle the message appropriately.
The delegate should implement either handleMachMessage: or the NSPortDelegate Protocol protocol method handlePortMessage:.
NSPort.hLast updated: 2009-05-28