mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 18:26:23 +00:00
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
This commit is contained in:
parent
bb4b512849
commit
600cd3e60b
1 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue