Index: /lang/objective-cplusplus/i3/trunk/tmp/nc.cpp
===================================================================
--- /lang/objective-cplusplus/i3/trunk/tmp/nc.cpp (revision 36256)
+++ /lang/objective-cplusplus/i3/trunk/tmp/nc.cpp (revision 36279)
@@ -56,4 +56,5 @@
     }
 
+    [[NSRunLoop currentRunLoop] run];
 }
 
@@ -81,4 +82,5 @@
     }
 
+    [[NSRunLoop currentRunLoop] run];
 }
 @end
@@ -95,5 +97,5 @@
     obj->thread_id = thread_id;
 
-    NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
+    NSDistributedNotificationCenter* center = [NSDistributedNotificationCenter defaultCenter];
     [center addObserver:obj selector:@selector(handleNotification1:) name:@"TestNotification1" object:nil];
     [center addObserver:obj selector:@selector(handleNotification2:) name:@"TestNotification2" object:nil];
@@ -143,5 +145,5 @@
     sleep(2);
 
-    NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
+    NSDistributedNotificationCenter* center = [NSDistributedNotificationCenter defaultCenter];
     NSNotification* notification3 = [NSNotification notificationWithName:@"TestNotification3" object:nil];
     [center postNotification:notification3];
