# classHasSelector

Inspect a local Objective-C class.

```js
classHasSelector(name, selector)
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `name` | string | Class name. |
| `selector` | string | Exact selector. |

## Returns

Boolean.

## Example

```js
console.log(classHasSelector("NSString", "length"));
```

## Notes

Start with [Objective-C step by step](/doc/objc). Use client.hasClass() and proxy.respondsTo() when targeting a remote app.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
