1 /* 2 SwitchTableView.h 3 4 Copyright (c) 2001 Pierre-Yves Rivaille 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Library General Public 8 License as published by the Free Software Foundation; either 9 version 2 of the License, or (at your option) any later version. 10 11 This library is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Library General Public License for more details. 15 16 You should have received a copy of the GNU Library General Public 17 License along with this library; see the file COPYING.LIB. 18 If not, write to the Free Software Foundation, 19 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 */ 21 22 #ifndef _GNUMail_H_SwitchTableView 23 #define _GNUMail_H_SwitchTableView 24 25 #include <AppKit/AppKit.h> 26 27 @interface SwitchTableView : NSTableView 28 29 @end 30 31 @interface NSObject (SwitchTableDataSource) 32 33 - (int) tableView: (NSTableView *)aTableView 34 stateForTableColumn: (NSTableColumn *)aTableColumn 35 row: (int)rowIndex; 36 37 - (void) tableView: (NSTableView *)aTableView 38 setState: (int)aState 39 forTableColumn: (NSTableColumn *)aTableColumn 40 row: (int)rowIndex; 41 42 - (int) tableView: (NSTableView *)aTableView 43 tagForTableColumn: (NSTableColumn *)aTableColumn 44 row: (int)rowIndex; 45 46 @end 47 48 #endif // _GNUMail_H_SwitchTableView 49