Document delete key delegate in tableview.

This commit is contained in:
Randall Luecke committed 2011-01-25 11:03:12 -05:00
1 parent 3e79d8324d
commit 30695e4110
1 file changed
+5
+5
View File
@@ -2344,6 +2344,11 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
- (CPMenu)tableView:(CPTableView)aTableView menuForTableColumn:(CPTableColumn)aColumn row:(int)aRow
Called when the user right clicks on the tableview. -1 is passed for the row or column if the user doesn't right click on a real row or column
Return a CPMenu that should be displayed if the user right clicks. If you do not implement this the tableview will just call super on menuForEvent
Delete Key
- (void)tableViewDeleteKeyPressed:(CPTableView)aTableView;
Called when the user presses the delete key. Many times you will want to delete data (or prompt for deletion) when the user hids the delete key.
Your delegate can implement this method to avoid subclassing the tableview to add this behaviour.
</pre>
@param aDelegate the delegate object for the tableview.