< prev index next >

src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m

Print this page

        

*** 31,40 **** --- 31,44 ---- #import "PropertiesUtilities.h" #import "ThreadUtilities.h" #import "QueuingApplicationDelegate.h" #import "AWTIconData.h" + /* + * Declare library specific JNI_Onload entry if static build + */ + DEF_STATIC_JNI_OnLoad static BOOL sUsingDefaultNIB = YES; static NSString *SHARED_FRAMEWORK_BUNDLE = @"/System/Library/Frameworks/JavaVM.framework"; static id <NSApplicationDelegate> applicationDelegate = nil; static QueuingApplicationDelegate * qad = nil;
*** 430,443 **** } @end ! void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> delegate) { AWT_ASSERT_APPKIT_THREAD; ! applicationDelegate = delegate; if (NSApp != nil) { [NSApp setDelegate: applicationDelegate]; if (applicationDelegate && qad) { --- 434,447 ---- } @end ! void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> newdelegate) { AWT_ASSERT_APPKIT_THREAD; ! applicationDelegate = newdelegate; if (NSApp != nil) { [NSApp setDelegate: applicationDelegate]; if (applicationDelegate && qad) {
< prev index next >