<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/HitResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSCellHitResult"
  },
  "title" : "NSCell.HitResult"
}
-->

# NSCell.HitResult

Constants used by the [`hitTest(for:in:of:)`](/documentation/AppKit/NSCell/hitTest(for:in:of:)) method to determine the effect of an event.

```
struct HitResult
```

## Topics

### Constants

[`NSCellHitContentArea`](/documentation/AppKit/NSCell/HitResult/contentArea)

A content area in the cell.

[`NSCellHitEditableTextArea`](/documentation/AppKit/NSCell/HitResult/editableTextArea)

An editable text area of the cell.

[`NSCellHitTrackableArea`](/documentation/AppKit/NSCell/HitResult/trackableArea)

A trackable area in the cell.

[`NSCellHitNone`](/documentation/AppKit/NSCellHitResult/NSCellHitNone)

An empty area, or did not hit in the cell.

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSCell/HitResult/init(rawValue:))

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)