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,

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

RE: NSNotificationCenter removeObserver NOT working

2008-09-04 Thread Valentin Dan
. 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 would have been easier though if it had

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];