---
title: port
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsport/port
---

# port

Creates and returns a new NSPort object capable of both sending and receiving messages.

## Declaration

```occ
+ (NSPort *) port;
```

## Return Value

Return Value A new NSPort object capable of both sending and receiving messages.

## See Also

### Creating instances

- [allocWithZone:](foundation/nsport-allocwithzone.md)
