equal
deleted
inserted
replaced
31 #import "PropertiesUtilities.h" |
31 #import "PropertiesUtilities.h" |
32 #import "ThreadUtilities.h" |
32 #import "ThreadUtilities.h" |
33 #import "QueuingApplicationDelegate.h" |
33 #import "QueuingApplicationDelegate.h" |
34 #import "AWTIconData.h" |
34 #import "AWTIconData.h" |
35 |
35 |
|
36 /* |
|
37 * Declare library specific JNI_Onload entry if static build |
|
38 */ |
|
39 DEF_STATIC_JNI_OnLoad |
36 |
40 |
37 static BOOL sUsingDefaultNIB = YES; |
41 static BOOL sUsingDefaultNIB = YES; |
38 static NSString *SHARED_FRAMEWORK_BUNDLE = @"/System/Library/Frameworks/JavaVM.framework"; |
42 static NSString *SHARED_FRAMEWORK_BUNDLE = @"/System/Library/Frameworks/JavaVM.framework"; |
39 static id <NSApplicationDelegate> applicationDelegate = nil; |
43 static id <NSApplicationDelegate> applicationDelegate = nil; |
40 static QueuingApplicationDelegate * qad = nil; |
44 static QueuingApplicationDelegate * qad = nil; |
430 } |
434 } |
431 |
435 |
432 @end |
436 @end |
433 |
437 |
434 |
438 |
435 void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> delegate) |
439 void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> newdelegate) |
436 { |
440 { |
437 AWT_ASSERT_APPKIT_THREAD; |
441 AWT_ASSERT_APPKIT_THREAD; |
438 applicationDelegate = delegate; |
442 applicationDelegate = newdelegate; |
439 |
443 |
440 if (NSApp != nil) { |
444 if (NSApp != nil) { |
441 [NSApp setDelegate: applicationDelegate]; |
445 [NSApp setDelegate: applicationDelegate]; |
442 |
446 |
443 if (applicationDelegate && qad) { |
447 if (applicationDelegate && qad) { |