NSPortDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in OS X v10.6 and later.
Declared in
NSPort.h
Companion guides

Overview

The NSPortDelegate protocol defines the optional methods implemented by delegates of NSPort objects.

Tasks

Handling Port Messages

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 OS X v10.0 and later.
  • Available as part of an informal protocol prior to OS X v10.6.
Declared In
NSPort.h