1/* 2 ExtendedTableColumn.m 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#include "ExtendedTableColumn.h" 23 24@implementation ExtendedTableColumn 25 26- (id)initWithIdentifier: (id)anObject 27{ 28 self = [super initWithIdentifier: anObject]; 29 _setTag = NO; 30 _setState = NO; 31 _useMouse = NO; 32 33 return self; 34} 35 36 37- (BOOL) shouldUseTag 38{ 39 return _setTag; 40} 41 42 43- (BOOL) shouldUseAndSetState 44{ 45 return _setState; 46} 47 48 49- (BOOL) shouldUseMouse 50{ 51 return _useMouse; 52} 53 54 55- (void) setShouldUseTag: (BOOL) aBool 56{ 57 _setTag = aBool; 58} 59 60 61- (void) setShouldUseAndSetState: (BOOL) aBool 62{ 63 _setState = aBool; 64} 65 66 67- (void) setShouldUseMouse: (BOOL) aBool 68{ 69 _useMouse = aBool; 70} 71 72 73@end 74 75 76@implementation NSTableColumn (ExtendedExtensions) 77 78 79- (BOOL) shouldUseTag 80{ 81 return NO; 82} 83 84 85- (BOOL) shouldUseAndSetState 86{ 87 return NO; 88} 89 90 91- (BOOL) shouldUseMouse 92{ 93 return NO; 94} 95 96 97@end 98 99