* Source/NSBrowser.m (-[NSBrowser setDelegate]:): Check for

nil object to allow unsetting the delegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17764 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2003-10-02 10:15:20 +00:00
parent d7524f54ae
commit 337e3d3e81
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-10-02 Andrew Ruder <aereder@ksu.edu>
* Source/NSBrowser.m (-[NSBrowser setDelegate]:): Check for nil
object to allow unsetting the delegate.
2003-09-29 Adam Fedor <fedor@gnu.org>
* Version 0.9.0

View file

@ -1765,7 +1765,7 @@ static NSTextFieldCell *titleCell;
flag = YES;
}
if (!flag)
if (!flag && anObject)
[NSException raise: NSBrowserIllegalDelegateException
format: @"Delegate does not respond to %s or %s\n",
"browser: numberOfRowsInColumn: ",