Re: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Michael Ash
On Thu, Sep 4, 2008 at 5:51 AM, Valentin Dan <[EMAIL PROTECTED]> wrote: > I'm trying to remove all notifications that have a certain object and I > can't seem to get that to work. I'm doing something like this: > > [[NSNotificationCenter defaultCenter] removeObserver:nil name:nil > object:myObject]

RE: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Valentin Dan
SSAGE. THANK YOU. From: Valentin Dan Sent: Thursday, September 04, 2008 1:03 PM To: 'Ken Ferry' Cc: cocoa-dev@lists.apple.com; Dan Tascau; Tim Rodgers Subject: RE: NSNotificationCenter removeObserver NOT working Oh, yeah ... I didn't read that part. I woul

Re: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Bill Bumgarner
On Sep 4, 2008, at 3:02 AM, Valentin Dan wrote: Oh, yeah ... I didn't read that part. I would have been easier though if it had acted like a wildcard :-) It would also be extremely problematic. You have no way of knowing what else might be observing that particular notification, nor what m

RE: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Valentin Dan
; Tim Rodgers Subject: Re: NSNotificationCenter removeObserver NOT working Hi Valentin, I think you're hoping that passing nil for the observer acts as a wildcard? It does not, check the docs. "Observer to remove from the dispatch table. Specify an observer to remove only e

Re: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Ken Ferry
Hi Valentin, I think you're hoping that passing nil for the observer acts as a wildcard? It does not, check the docs. "Observer to remove from the dispatch table. Specify an observer to remove only entries for this observer. Must not be nil, or message will have no effect." -Ken On Thu, Sep 4,

NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Valentin Dan
Hi, I'm trying to remove all notifications that have a certain object and I can't seem to get that to work. I'm doing something like this: [[NSNotificationCenter defaultCenter] removeObserver:nil name:nil object:myObject]; The notifications for this sender keep coming and that causes a