NSMachPortDelegate Protocol Reference
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in iOS 4.0 and later. |
| Companion guide | Distributed Objects Programming Topics |
| Declared in | NSPort.h |
Overview
The NSMachPortDelegate protocol defines the optional methods implemented by delegates of NSMachPort objects.
Instance Methods
handleMachMessage:
Process an incoming Mach message.
- (void)handleMachMessage:(void *)machMessage
Parameters
- machMessage
A pointer to a Mach message, cast as a pointer to void.
Discussion
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:.
Availability
- Available in iOS 2.0 and later.
- Available as part of an informal protocol prior to iOS 4.0.
Declared In
NSPort.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-04-23)