Mac OS X Reference Library Apple Developer Connection spyglass button

NSPortDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac 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 method handleMachMessage:. You must not implement both delegate methods.

Availability
  • Available in Mac OS X v10.0 and later.
  • Available as part of an informal protocol prior to Mac OS X v10.6.
Declared In
NSPort.h


Last updated: 2009-04-14

Did this document help you? Yes It's good, but... Not helpful...