mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:10:48 +00:00
Create working stubs for table view batch insertions/removals of rows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
290e5b3c34
commit
13202adda5
2 changed files with 69 additions and 1 deletions
|
@ -6998,6 +6998,47 @@ For a more detailed explanation, -setSortDescriptors:. */
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes columnIndexes:(NSIndexSet *)columnIndexes
|
||||
{
|
||||
[self reloadData];
|
||||
}
|
||||
|
||||
- (void)beginUpdates
|
||||
{
|
||||
_beginEndUpdates++;
|
||||
}
|
||||
|
||||
- (void)endUpdates
|
||||
{
|
||||
if (_beginEndUpdates > 0)
|
||||
{
|
||||
if (--_beginEndUpdates == 0)
|
||||
{
|
||||
// Process batched inserts/removes....
|
||||
// Just reload table for now until we get inserts/removes working...
|
||||
[self reloadData];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (NSInteger)columnForView:(NSView *)view
|
||||
{
|
||||
return(NSNotFound);
|
||||
}
|
||||
|
||||
- (void)insertRowsAtIndexes:(NSIndexSet *)indexes withAnimation:(NSTableViewAnimationOptions)animationOptions
|
||||
{
|
||||
}
|
||||
|
||||
- (void)removeRowsAtIndexes:(NSIndexSet *)indexes withAnimation:(NSTableViewAnimationOptions)animationOptions
|
||||
{
|
||||
}
|
||||
|
||||
- (NSInteger)rowForView:(NSView *)view
|
||||
{
|
||||
return(NSNotFound);
|
||||
}
|
||||
|
||||
@end /* implementation of NSTableView */
|
||||
|
||||
@implementation NSTableView (SelectionHelper)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue