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

# createConversationForConnection:

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

```
- (id) createConversationForConnection:(NSConnection *) conn;
```

## Parameters

`conn`

The connection object for which the receiver is the delegate.

## Return Value

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

## Discussion

New conversations are created only if [`independentConversationQueueing`](/documentation/Foundation/NSConnection/independentConversationQueueing) is <doc://com.apple.documentation/documentation/Swift/true> for `conn`. If you do not implement this method, `NSConnection` object creates an instance of `NSObject`.

## See Also

  <doc:nsdistantobjectrequest/1806830-conversation>

[`+ (id) currentConversation;`](/documentation/Foundation/NSConnection/currentConversation)

Returns a token object representing any conversation in progress in the current thread.



---

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)