Updates for revised NSNotificationCenter

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4416 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-06-17 10:53:24 +00:00
parent a9c28e8013
commit eda1ff3d60
6 changed files with 62 additions and 43 deletions

View file

@ -466,7 +466,7 @@ static int messages_received_count;
/*
* Don't need notifications any more - so remove self as observer.
*/
[NSNotificationCenter removeObserver: self];
[[NSNotificationCenter defaultCenter] removeObserver: self];
/*
* We can't be the ancestor of anything if we are invalid.
@ -511,8 +511,9 @@ static int messages_received_count;
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
[NSNotificationCenter postNotificationName: NSConnectionDidDieNotification
object: self];
[[NSNotificationCenter defaultCenter]
postNotificationName: NSConnectionDidDieNotification
object: self];
[arp release];
}
}
@ -1056,7 +1057,7 @@ static int messages_received_count;
NSHashInsert(connection_table, (void*)newConn);
[connection_table_gate unlock];
[NSNotificationCenter
[[NSNotificationCenter defaultCenter]
postNotificationName: NSConnectionDidInitializeNotification
object: newConn];