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 2002-04-18 22:44:04 +00:00
parent f88bad3c10
commit 03500c6bba
2 changed files with 4 additions and 10 deletions

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