---
title: "acceptsFirstMouse(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/acceptsfirstmouse(for:)"
---

# acceptsFirstMouse(for:)

Returns a Boolean value indicating whether the receiver accepts the first mouse.

## Declaration

```swift
func acceptsFirstMouse(for event: NSEvent?) -> Bool
```

## Parameters

- `event`: This parameter is ignored.

## Return Value

Return Value false if the selection mode of the receiver is NSListModeMatrix, true if the receiver is in any other selection mode. The receiver does not accept first mouse in NSListModeMatrix to prevent the loss of multiple selections.

## See Also

### Related Documentation

- [mode](appkit/nsmatrix/mode-swift.property.md)

### Handling Event and Action Messages

- [mouseDown(with:)](appkit/nsmatrix/mousedown(with:).md)
- [mouseDownFlags](appkit/nsmatrix/mousedownflags.md)
- [performKeyEquivalent(with:)](appkit/nsmatrix/performkeyequivalent(with:).md)
