-
Notifications
You must be signed in to change notification settings - Fork 40
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
Symbols with pid_t
missing from header-translator
generated files
#331
Comments
pid_t
missing from header-translator generated files
pid_t
missing from header-translator generated filespid_t
missing from header-translator
generated files
Just add |
The reason these are currently missing is that I'd rather use I am working on resolving this though. |
Makes sense, thanks. |
@madsmtm are you still tracking this? this is blocking one of my projects. (Thanks for this crate btw, absolutely phenomenal work here). |
Not working on it right now, no, but I still intend to get it working at some point, probably as part of / after #345. In the meantime you can do the following workaround yourself: use icrate::AppKit::NSRunningApplication;
use objc2::msg_send;
use libc::pid_t;
fn application_process_identifier(app: &NSRunningApplication) -> pid_t {
unsafe { msg_send![app, processIdentifier] }
} |
I am trying exact the same code, but got error about NSRunningApplication.
|
Hmm, are you sure it's the same code? The error seems to indicate that you may have written |
Definitely works for me, but then I'm using a bit outdated versions:
|
I found the problem. I used objc2 0.5.0. When I use reexport from icrate instead, which seems to be 0.4.1, it works.
|
Ah yeah, I haven't released a new version of |
For example
NSRunningApplication::processIdentifier
in AppKit. I guess this has smth to do with the fact that pid_t is typedef'ed.Any way to fix this or should it be patched on case-by-case basis in icrate crates?
The text was updated successfully, but these errors were encountered: