You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Olivier Chafik edited this page Nov 10, 2022
·
3 revisions
#Introduction
JNAerator can generate ready-to-use JARs that make any Objective-C framework available from Java.
#Objective-C Classes
JNAerator gathers the methods found in class definitions and protocols. It will add all the methods defined in other frameworks, provided they are parsed.
ObjectiveC classes end up in abstract java classes.
ObjectiveC protocols end up in java interfaces
#Examples
Create a JAR with wrappings for the AppKit and Foundation frameworks:
java -Xmx1000m -jar jnaerator.jar -framework Foundation -framework AppKit -jar appkit-foundation.jar
Create a JAR with Foundation, CoreFoundation, CoreGraphics and AppKit: