<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/instancesRespond(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(cm)instancesRespondToSelector:"
  },
  "title" : "instancesRespond(to:)"
}
-->

# instancesRespond(to:)

Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector.

```
class func instancesRespond(to aSelector: Selector!) -> Bool
```

## Parameters

`aSelector`

A [Selector](https://developer.apple.com/library/archive/documentation/General/Conceptual/DevPedia-CocoaCore/Selector.html#//apple_ref/doc/uid/TP40008195-CH48).

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if instances of the receiver are capable of responding to `aSelector` messages, otherwise [`NO`](/documentation/ObjectiveC/NO).

## Discussion

If `aSelector` messages are forwarded to other objects, instances of the class are able to receive those messages without error even though this method returns [`NO`](/documentation/ObjectiveC/NO).

To ask the class whether it, rather than its instances, can respond to a particular message, send to the class instead the  `NSObject` protocol instance method [`responds(to:)`](/documentation/ObjectiveC/NSObjectProtocol/responds(to:)).

## See Also

[`forwardInvocation:`](/documentation/ObjectiveC/NSObject-swift.class/forwardInvocation:)

Overridden by subclasses to forward messages to other objects.



---

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)