mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([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:
parent
2efcd9dcb8
commit
5d95a39e91
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue