---
title: "addRunLoop:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsconnection/addrunloop:"
---

# addRunLoop:

Adds the specified run loop to the list of run loops the receiver monitors and from which it responds to requests.

## Declaration

```occ
- (void) addRunLoop:(NSRunLoop *) runloop;
```

## Parameters

- `runloop`: The run loop to add to the receiver.

## Discussion

Discussion This method is invoked automatically when a request comes in from a new run loop if enableMultipleThreads has been set.

## See Also

### Running the Connection in a New Thread

- [runInNewThread](foundation/nsconnection/runinnewthread.md)
- [enableMultipleThreads](foundation/nsconnection/enablemultiplethreads.md)
- [multipleThreadsEnabled](foundation/nsconnection/multiplethreadsenabled.md)
- [removeRunLoop:](foundation/nsconnection/removerunloop:.md)
