---
title: "createConversationForConnection:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsconnectiondelegate/createconversationforconnection:"
---

# createConversationForConnection:

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

## Declaration

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

## Parameters

- `conn`: The connection object for which the receiver is the delegate.

## Return Value

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

## Discussion

Discussion New conversations are created only if independentConversationQueueing is true for conn. If you do not implement this method, NSConnection object creates an instance of NSObject.

## See Also

### Related Documentation

- [currentConversation](foundation/nsconnection/currentconversation.md)

### Responding to a Connection

- [connection:shouldMakeNewConnection:](foundation/nsconnectiondelegate/connection:shouldmakenewconnection:.md)
- [connection:handleRequest:](foundation/nsconnectiondelegate/connection:handlerequest:.md)
- [makeNewConnection:sender:](foundation/nsconnectiondelegate/makenewconnection:sender:.md)
