Asks the delegate to provide an array of row actions to be attached to the specified edge of a table row and displayed when the user swipes horizontally across the row.
- macOS 10.11+
The table view that sent the message.
The index of the target row.
The edge (of class
NSTable) for which row actions are requested. This is based on the direction in which the user swiped on the row. Swiping to the right results in an edge value of
View .Row Action Edge
NSTable. Swiping to the left results in an edge value of
View .Row Action Edge .leading
View .Row Action Edge .trailing
An array of row actions (of class
NSTable) to be enabled on the specified edge of the table row.
Implement this method if your table row supports actions that are displayed when the user swipes horizontally across the row. For example, your table view could use this method to implement a swipe left to delete function in your table rows. When called, this method receives the table view, the index of the row the user swiped, and an edge of type
NSTable. The method should return an array of any row actions of class
NSTable that are supported for the specified edge. If no row actions are available, an empty array should be returned.
If this method isn’t implemented, then the table row displays no actions when the user swipes horizontally away from the specified edge.