From afd15b759269e0f8720668f237dce503ac37350a Mon Sep 17 00:00:00 2001 From: CaS Date: Tue, 10 Jan 2006 07:24:54 +0000 Subject: [PATCH] Minor documentation tweak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22281 72102866-910b-0410-8b05-ffd578937521 --- Source/NSNotificationCenter.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/NSNotificationCenter.m b/Source/NSNotificationCenter.m index 78f5ff234..9914b96ef 100644 --- a/Source/NSNotificationCenter.m +++ b/Source/NSNotificationCenter.m @@ -641,6 +641,11 @@ static NSNotificationCenter *default_center = nil; *

The notification center does not retain observer or object. Therefore, * you should always send removeObserver: or removeObserver:name:object: to * the notification center before releasing these objects.

+ * + *

NB. For MacOS-X compatibility, adding an observer multiple times will + * register it to receive multiple copies of any matching notification, however + * removing an observer will remove all of the multiple registrations. + *

*/ - (void) addObserver: (id)observer selector: (SEL)selector @@ -687,7 +692,7 @@ static NSNotificationCenter *default_center = nil; /* * Record the Observation in one of the linked lists. * - * NB. It is possible to register an observr for a notification more than + * NB. It is possible to register an observer for a notification more than * once - in which case, the observer will receive multiple messages when * the notification is posted... odd, but the MacOS-X docs specify this. */