mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:20:37 +00:00
NSTable* classes added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4619 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b0a51e129c
commit
222f406f06
5 changed files with 258 additions and 0 deletions
51
Source/NSTableView.m
Normal file
51
Source/NSTableView.m
Normal file
|
@ -0,0 +1,51 @@
|
|||
@implementation NSTableView
|
||||
- (id)initWithFrame:(NSRect)frameRect
|
||||
{
|
||||
self = [super initWithFrame:frameRect];
|
||||
|
||||
tbv_headerview = [[NSTableHeaderView alloc] initWithFrame:NSZeroRect];
|
||||
}
|
||||
|
||||
- (void)setDataSource:(id)anObject
|
||||
{
|
||||
|
||||
// This method raises an NSInternalInconistencyException if anObject
|
||||
// doesn't respond to either
|
||||
// numberOfRowsInTableView: or tableView:objectValueForTableColumn:row:.
|
||||
|
||||
ASSIGN(tb_datasource, anObject);
|
||||
|
||||
[self tile];
|
||||
}
|
||||
|
||||
- (id)dataSource
|
||||
{
|
||||
return tb_datasource;
|
||||
}
|
||||
|
||||
- (void)reloadData
|
||||
{
|
||||
// anything else?
|
||||
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (void)setDoubleAction:(SEL)aSelector
|
||||
{
|
||||
}
|
||||
|
||||
- (SEL)doubleAction
|
||||
{
|
||||
}
|
||||
|
||||
- (int)clickedColumn
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
- (int)clickedRow
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue