---
title: PortDelegate
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/portdelegate
---

# PortDelegate

An interface for handling incoming messages.

## Declaration

```swift
protocol PortDelegate : NSObjectProtocol
```

## Overview

Overview The PortDelegate protocol defines the optional methods implemented by delegates of Port objects.

## Topics

### Handling Port Messages

- [handle(_:)](foundation/portdelegate/handle(_:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Inherited By

- [NSMachPortDelegate](foundation/nsmachportdelegate.md)

## See Also

### Legacy

- [NSMachPortDelegate](foundation/nsmachportdelegate.md)
- [NSMachPort](foundation/nsmachport.md)
- [MessagePort](foundation/messageport.md)
- [PortMessage](foundation/portmessage.md)
- [NSProtocolChecker](foundation/nsprotocolchecker.md)
