src/macosx/native/sun/awt/ApplicationDelegate.m

Print this page

        

*** 565,578 **** JNIEXPORT void JNICALL Java_com_apple_eawt__1AppEventHandler_nativeRegisterForNotification (JNIEnv *env, jclass clz, jint notificationType) { JNF_COCOA_ENTER(env); [ThreadUtilities performOnMainThread:@selector(_registerForNotification:) ! onObject:[ApplicationDelegate class] withObject:[NSNumber numberWithInt:notificationType] ! waitUntilDone:NO ! awtMode:NO]; // AWT_THREADING Safe (non-blocking) JNF_COCOA_EXIT(env); } /* * Class: com_apple_eawt__AppDockIconHandler --- 565,577 ---- JNIEXPORT void JNICALL Java_com_apple_eawt__1AppEventHandler_nativeRegisterForNotification (JNIEnv *env, jclass clz, jint notificationType) { JNF_COCOA_ENTER(env); [ThreadUtilities performOnMainThread:@selector(_registerForNotification:) ! on:[ApplicationDelegate class] withObject:[NSNumber numberWithInt:notificationType] ! waitUntilDone:NO]; // AWT_THREADING Safe (non-blocking) JNF_COCOA_EXIT(env); } /* * Class: com_apple_eawt__AppDockIconHandler