<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/acceptsFirstMouse(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(im)acceptsFirstMouse:"
  },
  "title" : "acceptsFirstMouse(for:)"
}
-->

# acceptsFirstMouse(for:)

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

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

## Parameters

`event`

This parameter is ignored.

## Return Value

<doc://com.apple.documentation/documentation/Swift/false> if the selection mode of the receiver is `NSListModeMatrix`, <doc://com.apple.documentation/documentation/Swift/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

[`mode`](/documentation/AppKit/NSMatrix/mode-swift.property)

The selection mode of the receiver.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)