([NSNotificationCenter -removeObserver:name:object:]):

Just return if all arguments are nil instead of throwing exception.  The new
behaviour is compatible with MacOSX.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18849 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wim (Willem Rein) Oudshoorn 2004-03-16 08:42:35 +00:00
parent 2efcd9dcb8
commit 5d95a39e91

View file

@ -735,8 +735,7 @@ static NSNotificationCenter *default_center = nil;
object: (id)object
{
if (name == nil && object == nil && observer == nil)
[NSException raise: NSInvalidArgumentException
format: @"Attempt to remove nil observer/name/object"];
return;
/*
* NB. The removal algorithm depends on an implementation characteristic