<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.0.0 - 10.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPortCoder/dispatch",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPortCoder(im)dispatch"
  },
  "title" : "dispatch"
}
-->

# dispatch

Processes and acts upon the distributed object message with which the receiver was initialized.

```
- (void) dispatch;
```

## See Also

[`+ (id) portCoderWithReceivePort:(NSPort *) rcvPort sendPort:(NSPort *) sndPort components:(NSArray *) comps;`](/documentation/Foundation/NSPortCoder/portCoderWithReceivePort:sendPort:components:)

Creates and returns a new `NSPortCoder` object.

[`- (id) initWithReceivePort:(NSPort *) rcvPort sendPort:(NSPort *) sndPort components:(NSArray *) comps;`](/documentation/Foundation/NSPortCoder/initWithReceivePort:sendPort:components:)

Initializes and returns an `NSPortCoder` object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)