<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/DropOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTableViewDropOperation"
  },
  "title" : "NSTableView.DropOperation"
}
-->

# NSTableView.DropOperation

`NSTableView` defines these constants to specify drop operations.

```
enum DropOperation
```

## Overview

For example, given a table with `n` rows (numbered with row `0` at the top visually), a row of `n–1` and operation of `NSTableViewDropOn` would specify a drop on the last row. To specify a drop below the last row, you use a row of `n` and `NSTableViewDropAbove` for the operation.

## Topics

### Constants

[`NSTableView.DropOperation.on`](/documentation/AppKit/NSTableView/DropOperation/on)

Specifies that the drop should occur on the specified row.

[`NSTableView.DropOperation.above`](/documentation/AppKit/NSTableView/DropOperation/above)

Specifies that the drop should occur above the specified row.

[`NSTableView.DropOperation.on`](/documentation/AppKit/NSTableView/DropOperation/on)

Specifies that the drop should occur on the specified row.

[`NSTableView.DropOperation.above`](/documentation/AppKit/NSTableView/DropOperation/above)

Specifies that the drop should occur above the specified row.



---

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)