Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thoughts of merging into JNA #1

Open
rednoah opened this issue Aug 12, 2014 · 8 comments
Open

Thoughts of merging into JNA #1

rednoah opened this issue Aug 12, 2014 · 8 comments

Comments

@rednoah
Copy link

rednoah commented Aug 12, 2014

I've only used this project to do same basic calls into Objective C (the Security Scoped Bookmarks NSURL methods) but it's been working extremely well for me, and getting things done went much more smooth than originally expected.

So first of all congrats on an amazingly simple yet powerful library! I get the feeling it's heavily under-appreciated...

Not sure if this ever came up, nor have I asked twall from JNA about this, but wouldn't your Objective-C-Bridge fit right in with the JNA project?

@shannah
Copy link
Owner

shannah commented Aug 12, 2014

Glad it's working well for you. The security scoped bookmarks was one of the things I originally developed this for in my own projects.

I'm happy to contribute the code into jna, but I suspect that it doesn't really for into that project's goals. Jna seems to be a platform independent library whereas the objc bridge is strictly for os x. That said, if he wants to integrate it, he's welcome to.

@teras
Copy link

teras commented Sep 27, 2014

There is a part of JNA, the jna-platform, which has exactly jna bindings to base/core system libraries.
Probably it will fit there?

@shannah
Copy link
Owner

shannah commented Sep 29, 2014

I have posted an issue in the JNA issue tracker to see if there is any interest.

@rednoah
Copy link
Author

rednoah commented Sep 29, 2014

Here's my original thread:
https://groups.google.com/forum/#!searchin/jna-users/Objective$20C/jna-users/cyCiIT2-6g0/aNj7oMAt5EQJ

I think jna-platform is platform specific bindings, but it's all Java and not extending anything on the JNA native code. So for Java-Objective-C-Bridge we'd need to add the native code to the JNA native component.

@LOG-TAG
Copy link

LOG-TAG commented Mar 13, 2019

porting JNA to JNI will be a good thing?

@rednoah
Copy link
Author

rednoah commented Mar 13, 2019

Adding a random note: Java-Objective-C-Bridge and JNA have overlapping packages (presumably so that Java-Objective-C-Bridge can access JNA protected methods) which is something the new Java Module System really really doesn't like.

@shannah
Copy link
Owner

shannah commented Mar 13, 2019

Good point about the JPMS package overlap issue. I have fixed it so that there is no longer a package overlap.

@rednoah
Copy link
Author

rednoah commented Nov 13, 2020

java-native-access/jna#370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants