Re: Notifications not filtering on object ?
Re: Notifications not filtering on object ?
- Subject: Re: Notifications not filtering on object ?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 19 Jan 2005 15:55:28 +0100
At 9:18 Uhr -0500 19.01.2005, Robert Clair wrote:
I've had a number of obscure bugs which seem to be caused by the
notification system not filtering on the object as requested.
Simplified example:
NSSomeClass* desiredInstanceOfClass;
NSSomeClass* differentInstance;
--------------------------------------------------------
[ [NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(myNotificationHandler:)
name: NSSomeNotification
object: desiredInstanceOfClass ];
Is desiredInstanceOfClass NIL, perhaps? That will register a
notification for all objects.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden