---
title: "dispatchWithComponents:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsconnection/dispatchwithcomponents:"
---

# dispatchWithComponents:

Allows subclasses to ask a connection object to dispatch component data.

## Declaration

```occ
- (void) dispatchWithComponents:(NSArray *) components;
```

## Parameters

- `components`: Distributed Objects component data.

## Discussion

Discussion Port subclasses should use this method to ask a connection object to dispatch Distributed Objects component data received over the wire. This will decode the data, authenticate, and send the message.

## See Also

### Getting Ports

- [receivePort](foundation/nsconnection/receiveport-c.property.md)
- [sendPort](foundation/nsconnection/sendport-c.property.md)
