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

# requestModes

The set of request modes the receiver’s receive port is registered for with its `NSRunLoop` object.

```
@property (copy, readonly) NSArray<NSString *> * requestModes;
```

## Discussion

An array of `NSString` objects that represents the set of request modes the receiver’s receive port is registered for with its [`RunLoop`](/documentation/Foundation/RunLoop) object.

## 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)