<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.0.0 - 10.13.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDistantObjectRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDistantObjectRequest"
  },
  "title" : "NSDistantObjectRequest"
}
-->

# NSDistantObjectRequest

An object used by the distributed objects system to help handle invocations between different processes.

```
@interface NSDistantObjectRequest : NSObject
```

## Overview

Do not create [`NSDistantObjectRequest`](/documentation/Foundation/NSDistantObjectRequest) objects directly. Unless you are getting involved with the low-level details of distributed objects, there should never be a need to access an [`NSDistantObjectRequest`](/documentation/Foundation/NSDistantObjectRequest). To intercept and possibly process requests yourself, implement the [`NSConnection`](/documentation/Foundation/NSConnection) delegate method [`connection:handleRequest:`](/documentation/Foundation/NSConnectionDelegate/connection:handleRequest:).

## Topics

### Getting Information About a Request

[`connection`](/documentation/Foundation/NSDistantObjectRequest/connection)

Returns the `NSConnection` object involved in the request.

[`conversation`](/documentation/Foundation/NSDistantObjectRequest/conversation)

Returns the token object representing the conversation in which the receiver was created.

[`invocation`](/documentation/Foundation/NSDistantObjectRequest/invocation)

Returns the `NSInvocation` object for the request.

### Raising a Remote Exception

[`-  replyWithException:`](/documentation/Foundation/NSDistantObjectRequest/replyWithException:)

Sends a reply back to the remote object making the distant object request.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)