From 600cd3e60bf5607e90044de18c6039249fb980ba Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Mon, 10 Jan 2000 02:34:06 +0000 Subject: [PATCH] Updated for change in NSView ivar names; some other new code git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5733 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTableView.m | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/NSTableView.m b/Source/NSTableView.m index 95d7f932f..2a2db2499 100644 --- a/Source/NSTableView.m +++ b/Source/NSTableView.m @@ -23,7 +23,8 @@ tbv_columns = [NSMutableArray new]; tbv_gridColor = [NSColor gridColor]; - tbv_headerView = nil; + tbv_headerView = [NSTableHeaderView new]; + return self; } - (void)setDataSource:(id)anObject @@ -597,7 +598,7 @@ object with the NSTableView as the text delegate. */ objectValueForTableColumn: [tbv_columns objectAtIndex:i] row: rowIndex]]; - [aCell drawWithFrame: colRect]; + [aCell drawWithFrame: colRect inView: self]; } } @@ -611,14 +612,21 @@ object with the NSTableView as the text delegate. */ //FIXME, explain. } +- (void) drawRect: (NSRect)aRect +{ + int i; + for (i = 0; i < [self numberOfColumns]; i++) + [self drawRow: i clipRect: aRect]; +} + - (void)scrollRowToVisible:(int)rowIndex { - [(NSClipView *)super_view scrollToPoint:NSZeroPoint]; + [(NSClipView *)_super_view scrollToPoint:NSZeroPoint]; } - (void)scrollColumnToVisible:(int)columnIndex { - [(NSClipView *)super_view scrollToPoint:NSZeroPoint]; + [(NSClipView *)_super_view scrollToPoint:NSZeroPoint]; } - (BOOL)textShouldBeginEditing:(NSText *)textObject