| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The tricky part here -- the reason I need a callback in the first place -- is that the native code I'm calling sits inside a CFRunLoop. So I plan to spawn a thread with the native code, which then calls back when the system goes to sleep or wakes up. (More on the problem specifics below)
2. Is it even possible to mix Obj-C code into the .jnilib?
3. Failing these, what's the recommended route for JVM callbacks using JNI? Am I better off using JDirect?
I've found the IOKit hooks for sleep and wake, and have C code that works dandily with these. So now I just need a way to notify the Java code from the native code "hey, the system woke up" or "the system is going to sleep now",
| References: | |
| >JNI and NSSelector (From: "Nathan V. Roberts" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.