mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
4126859bd5
commit
aa2e15e6f5
6 changed files with 62 additions and 43 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue