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

# connection:handleRequest:

This method should be implemented by `NSConnection` object delegates that want to intercept distant object requests.

```
- (BOOL) connection:(NSConnection *) connection handleRequest:(NSDistantObjectRequest *) doreq;
```

## Parameters

`connection`

The connection object for which the receiver is the delegate.

`doreq`

The distant object request.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the request was handled by the delegate, <doc://com.apple.documentation/documentation/Swift/false> if the request should proceed as if the delegate did not intercept it.

---

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)