---
title: "makeNewConnection:sender:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsconnectiondelegate/makenewconnection:sender:"
---

# makeNewConnection:sender:

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

## Declaration

```occ
- (BOOL) makeNewConnection:(NSConnection *) conn sender:(NSConnection *) ancestor;
```

## Parameters

- `conn`: The new connection.
- `ancestor`: The parent connection.

## Return Value

Return Value true if ancestor should allow conn to be created and configured, false if ancestor should refuse and immediately release conn.

## Discussion

Discussion Use this method to limit the number of NSConnection objects created in your application or to change the parameters of child NSConnection objects. Use NSConnectionDidInitializeNotification instead of this delegate method if possible.

## See Also

### Responding to a Connection

- [connection:shouldMakeNewConnection:](foundation/nsconnectiondelegate/connection:shouldmakenewconnection:.md)
- [connection:handleRequest:](foundation/nsconnectiondelegate/connection:handlerequest:.md)
- [createConversationForConnection:](foundation/nsconnectiondelegate/createconversationforconnection:.md)
