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

# mouseDownFlags

The flags in effect at the mouse-down event that started the current tracking session.

```
var mouseDownFlags: Int { get }
```

## Discussion

The [`NSMatrix`](/documentation/AppKit/NSMatrix) [`mouseDown(with:)`](/documentation/AppKit/NSMatrix/mouseDown(with:)) method obtains these flags by sending a [`modifierFlags`](/documentation/AppKit/NSEvent/modifierFlags-swift.property) message to the event passed into [`mouseDown(with:)`](/documentation/AppKit/NSMatrix/mouseDown(with:)). Use this property if you want to access these flags. This property is valid only during tracking; it isn’t useful if the target of the receiver initiates another tracking loop as part of its action method (as a cell that pops up a pop-up list does, for example).

## See Also

[`sendAction(on:)`](/documentation/AppKit/NSControl/sendAction(on:))

Sets the conditions on which the receiver sends action messages to its target.



---

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)