NSPortDelegate Protocol Reference
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in iOS 4.0 and later. |
| Declared in | NSPort.h |
| Companion guides | Run Loops Distributed Objects Programming Topics |
Overview
The NSPortDelegate protocol defines the optional methods implemented by delegates of NSPort objects.
Instance Methods
handlePortMessage:
Processes a given incoming message on the port.
- (void)handlePortMessage:(NSPortMessage *)portMessage
Parameters
- portMessage
An incoming port message.
Discussion
See NSPort Class Reference for more information.
The delegate should implement either handlePortMessage: or the NSMachPortDelegate Protocol protocol method handleMachMessage:. You must not implement both delegate methods.
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)