---
title: "handle(_:client:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/handle(_:client:)"
---

# handle(_:client:)

Handles key down and mouse events.

## Declaration

```swift
func handle(_ event: NSEvent!, client sender: Any!) -> Bool
```

## Parameters

- `event`: The event to handle.
- `sender`: The client object sending the event.

## Return Value

Return Value YES if the event is handled; otherwise NO.
