Hi folks,

Apple has updated the NSThread API

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/Ref
erence/Reference.html

Who is currently hacking on NSThread?

I would like to do this:

    _t = [[NSThread alloc] initWithTarget:self
                                 selector:@selector(runOnce:)
                                 object:nil];
                                   
    [[NSNotificationCenter defaultCenter] addObserver: self
                                          selector:@selector(threadWillExit:)
                                          name:NSThreadWillExitNotification
                                          object: _t];
                                   
    [_t run]; // or start...


Any comments?

Dave




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to