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

# NSConnectionDelegate

An interface for interacting with low-level, interprocess connections.

```
@protocol NSConnectionDelegate <NSObject>
```

## Overview

The [`NSConnectionDelegate`](/documentation/Foundation/NSConnectionDelegate) protocol defines the optional methods implemented by delegates of [`NSConnection`](/documentation/Foundation/NSConnection) objects.

## Topics

### Authenticating

[`-  authenticateComponents:withData:`](/documentation/Foundation/NSConnectionDelegate/authenticateComponents:withData:)

Returns a Boolean value that indicates whether given authentication data is valid for a given set of components.

[`-  authenticationDataForComponents:`](/documentation/Foundation/NSConnectionDelegate/authenticationDataForComponents:)

Returns an `NSData` object to be used as an authentication stamp for an outgoing message.

### Responding to a Connection

[`-  connection:shouldMakeNewConnection:`](/documentation/Foundation/NSConnectionDelegate/connection:shouldMakeNewConnection:)

Returns a Boolean value that indicates whether the parent connection should allow a given new connection to be created.

[`-  connection:handleRequest:`](/documentation/Foundation/NSConnectionDelegate/connection:handleRequest:)

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

[`-  createConversationForConnection:`](/documentation/Foundation/NSConnectionDelegate/createConversationForConnection:)

Returns an arbitrary object identifying a new conversation being created for the connection in the current thread.

[`-  makeNewConnection:sender:`](/documentation/Foundation/NSConnectionDelegate/makeNewConnection:sender:)

Returns a Boolean value that indicates whether the parent should allow a given new connection to be created and configured.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)