9 #import <Foundation/Foundation.h> 12 #include <TargetConditionals.h> 14 #if TARGET_OS_MAC && !TARGET_OS_IPHONE 15 #import <Cocoa/Cocoa.h> 29 if (![NSThread isMultiThreaded]) [[[NSThread alloc] init]
start];
33 #if TARGET_OS_MAC && !TARGET_OS_IPHONE 34 return ( [NSEvent modifierFlags] & NSShiftKeyMask ) != 0;
40 #if TARGET_OS_MAC && !TARGET_OS_IPHONE 41 return ( [NSEvent modifierFlags] & NSControlKeyMask ) != 0;
47 #if TARGET_OS_MAC && !TARGET_OS_IPHONE 48 return ( [NSEvent modifierFlags] & NSAlternateKeyMask ) != 0;
IMPORTANT: all classes derived from thread must call waitTillDone() in their destructor, to avoid object destruction during a virtual function call!
static unsigned CALLBACK g_entry(void *p_instance)
static void appleStartThreadPrologue()