]> Dogcows Code - chaz/thecheat/blob - BetterTableView.h
update contact information and project URL
[chaz/thecheat] / BetterTableView.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
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.
10 */
11
12 #import <Cocoa/Cocoa.h>
13
14
15 @interface BetterTableView : NSTableView
16 {
17 BOOL _canDelete; // YES if deleting is enabled
18 BOOL _canCopyPaste;
19 }
20
21 // override super
22 - (void)keyDown:(NSEvent *)theEvent;
23
24 // new stuff
25 - (BOOL)canDelete;
26 - (void)setCanDelete:(BOOL)flag;
27
28 - (BOOL)canCopyPaste;
29 - (void)setCanCopyPaste:(BOOL)flag;
30
31 // array of NSNumbers with the rows which are selected
32 - (NSArray *)selectedRows;
33
34 @end
35
36 @interface NSObject(BetterTableViewDelegate)
37
38 - (NSString *)tableViewPasteboardType:(NSTableView *)tableView;
39 - (NSData *)tableView:(NSTableView *)tableView copyRows:(NSArray *)rows;
40 - (void)tableView:(NSTableView *)tableView pasteRowsWithData:(NSData *)rowData;
41
42 - (void)tableView:(NSTableView *)tableView deleteRows:(NSArray *)rows;
43
44 - (BOOL)tableViewDidReceiveEnterKey:(NSTableView *)tableView;
45 - (BOOL)tableViewDidReceiveSpaceKey:(NSTableView *)tableView;
46
47 @end
This page took 0.031134 seconds and 4 git commands to generate.