# `GSProgressWindowController addTaskWithTitle:`

*Instance Method*

Begins tracking a new task. Returns an opaque object that can be used to stop tracking the task.

## Declaration

```swift
func addTask(withTitle title: String) -> Any
```

```objc
- (id) addTaskWithTitle:(NSString *) title;
```

```python
addTaskWithTitle_(title: str) -> object
```

## Discussion

Each call to `-addTaskWithTitle:` must be matched by a call to `-stopTask:` with the object returned by this method.

