---
title: "instancesRespond(to:)"
framework: objectivec
role: symbol
role_heading: Type Method
path: "objectivec/nsobject-swift.class/instancesrespond(to:)"
---

# instancesRespond(to:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value YES if instances of the receiver are capable of responding to aSelector messages, otherwise NO.

## Discussion

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. 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:).
