# `GSWindowController setToolForClass:`

*Instance Method*

The activate a tool based on its class

## Declaration

```swift
func setToolFor(_ aClass: AnyClass)
```

```objc
- (void) setToolForClass:(Class) aClass;
```

```python
setToolForClass_(aClass: type)
```

## Parameters

- `aClass` — The class of the tool that should be activated.

