Fixed some minor issues with NSOutlineView's delegate methods.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ludovic Marcotte 2002-04-18 22:44:04 +00:00
parent 677d12f9d5
commit f5800db6de
2 changed files with 4 additions and 10 deletions

View file

@ -169,11 +169,11 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
shouldSelectItem: (id)item;
- (BOOL) outlineView: (NSOutlineView *)outlineView
shouldSelectTableColumn: (NSTableColumn *)tableColumn;
- (BOOL) outlineView: (NSOutlineView *)outlineView
- (void) outlineView: (NSOutlineView *)outlineView
willDisplayCell: (id)cell
forTableColumn: (NSTableColumn *)tableColumn
item: (id)item;
- (BOOL) outlineView: (NSOutlineView *)outlineView
- (void) outlineView: (NSOutlineView *)outlineView
willDisplayOutlineCell: (id)cell
forTableColumn: (NSTableColumn *)tableColumn
item: (id)item;

View file

@ -780,9 +780,7 @@ static NSImage *unexpandable = nil;
}
- (void) setDelegate: (id)anObject
{
SEL sel;
{
if (_delegate)
[nc removeObserver: _delegate name: nil object: self];
_delegate = anObject;
@ -801,10 +799,6 @@ static NSImage *unexpandable = nil;
SET_DELEGATE_NOTIFICATION(ItemDidCollapse);
SET_DELEGATE_NOTIFICATION(ItemWillExpand);
SET_DELEGATE_NOTIFICATION(ItemWillCollapse);
/* Cache */
sel = @selector(outlineView:willDisplayCell:forTableColumn:row:);
sel = @selector(outlineView:setObjectValue:forTableColumn:row:);
}
- (void) encodeWithCoder: (NSCoder*)aCoder
@ -952,7 +946,7 @@ static NSImage *unexpandable = nil;
tb = [_tableColumns objectAtIndex: i];
cell = [tb dataCellForRow: rowIndex];
if (_del_responds)
if ([_delegate respondsToSelector: @selector(outlineView:willDisplayCell:forTableColumn:item:)])
{
[_delegate outlineView: self
willDisplayCell: cell