aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/NewtMacWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/native/NewtMacWindow.h')
-rw-r--r--src/newt/native/NewtMacWindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/newt/native/NewtMacWindow.h b/src/newt/native/NewtMacWindow.h
index 971661ebf..fc8a1e4f3 100644
--- a/src/newt/native/NewtMacWindow.h
+++ b/src/newt/native/NewtMacWindow.h
@@ -37,12 +37,15 @@
@interface NewtMacWindow : NSWindow
{
jobject javaWindowObject;
+
+ // This is set while messages are being dispatched and cleared afterward
+ JNIEnv* env;
}
+ (BOOL) initNatives: (JNIEnv*) env forClass: (jobject) clazz;
/* Set and cleared during event dispatching cycle */
-+ (void) setJNIEnv: (JNIEnv*) env;
+- (void) setJNIEnv: (JNIEnv*) env;
- (id) initWithContentRect: (NSRect) contentRect
styleMask: (NSUInteger) windowStyle