Show
Ignore:
Timestamp:
12/27/09 15:44:08 (5 years ago)
Author:
saturday06
Message:

ioioo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/tmp/nc.cpp

    r36256 r36279  
    5656    } 
    5757 
     58    [[NSRunLoop currentRunLoop] run]; 
    5859} 
    5960 
     
    8182    } 
    8283 
     84    [[NSRunLoop currentRunLoop] run]; 
    8385} 
    8486@end 
     
    9597    obj->thread_id = thread_id; 
    9698 
    97     NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; 
     99    NSDistributedNotificationCenter* center = [NSDistributedNotificationCenter defaultCenter]; 
    98100    [center addObserver:obj selector:@selector(handleNotification1:) name:@"TestNotification1" object:nil]; 
    99101    [center addObserver:obj selector:@selector(handleNotification2:) name:@"TestNotification2" object:nil]; 
     
    143145    sleep(2); 
    144146 
    145     NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; 
     147    NSDistributedNotificationCenter* center = [NSDistributedNotificationCenter defaultCenter]; 
    146148    NSNotification* notification3 = [NSNotification notificationWithName:@"TestNotification3" object:nil]; 
    147149    [center postNotification:notification3];