bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationCenter throws exception in removeObserver


From: Wim Oudshoorn
Subject: Re: NSNotificationCenter throws exception in removeObserver
Date: Mon, 15 Mar 2004 16:13:28 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (darwin)

Adam Fedor <fedor@doc.com> writes:

> On Mar 8, 2004, at 9:02 AM, Wim Oudshoorn wrote:
>
>> The following code will throw an NSInvalidArgumentException
>>
>> [[NSNotificationCenter defaultCenter] removeObserver: nil]
>>
>> The same code on WO4.5 YellowBox and MacOSX 10.3 will
>> not throw an exception.
>>
>> So I will shortly apply a patch to fix this.
>> Any objections?
>>
>
> Well, the only objection is that I'd like to see the patch for this,
> not just the description. It's easier to see what you want done then.

Ah, I had just observed the behaviour and not written the patch.

Attachment: NSNotificationCenter.patch
Description: Do not throw exception when removing nil observer

Attachment: main.m
Description: Test program

Wim Oudshoorn.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]