3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.dogcows.com/chaz/wiki/TheCheat
6 * Copyright (c) 2003-2010, Charles McGarvey et al.
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
12 #import <Cocoa/Cocoa.h>
15 @interface BetterTableView
: NSTableView
17 BOOL _canDelete
; // YES if deleting is enabled
22 - (void)keyDown
:(NSEvent
*)theEvent
;
26 - (void)setCanDelete
:(BOOL
)flag
;
29 - (void)setCanCopyPaste
:(BOOL
)flag
;
31 // array of NSNumbers with the rows which are selected
32 - (NSArray
*)selectedRows
;
36 @interface
NSObject(BetterTableViewDelegate
)
38 - (NSString
*)tableViewPasteboardType
:(NSTableView
*)tableView
;
39 - (NSData
*)tableView
:(NSTableView
*)tableView copyRows
:(NSArray
*)rows
;
40 - (void)tableView
:(NSTableView
*)tableView pasteRowsWithData
:(NSData
*)rowData
;
42 - (void)tableView
:(NSTableView
*)tableView deleteRows
:(NSArray
*)rows
;
44 - (BOOL
)tableViewDidReceiveEnterKey
:(NSTableView
*)tableView
;
45 - (BOOL
)tableViewDidReceiveSpaceKey
:(NSTableView
*)tableView
;