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

# addRequestMode:

Adds `mode` to the set of run-loop input modes that the receiver uses for connection requests.

```
- (void) addRequestMode:(NSString *) rmode;
```

## Parameters

`rmode`

The mode to add to the receiver.

## Discussion

The default input mode is `NSDefaultRunLoopMode`. See the [`RunLoop`](/documentation/Foundation/RunLoop) class specification for more information on input modes.

## See Also

[`func add(Port, forMode: RunLoop.Mode)`](/documentation/Foundation/RunLoop/add(_:forMode:)-6z982)

Adds a port as an input source to the specified mode of the run loop.



---

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)