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

NSRunningApplication missing processIdentifier method #542

Closed
ok-nick opened this issue Dec 22, 2023 · 1 comment
Closed

NSRunningApplication missing processIdentifier method #542

ok-nick opened this issue Dec 22, 2023 · 1 comment
Labels
A-framework Affects the framework crates and the translator for them bug Something isn't working

Comments

@ok-nick
Copy link

ok-nick commented Dec 22, 2023

Hi, the NSRunningApplication class is missing the processIdentifier method. I'm assuming it's something to do with the pid_t type causing this method to not be auto-generated?

For now I'm going to use msg_send, but if there's anything that can be done to fix this issue I'd be happy to send a PR.

Edit: Does this look correct?

unsafe fn NSRunningApplication_processIdentifier(
    app: &icrate::AppKit::NSRunningApplication,
) -> std::os::raw::c_int {
    unsafe { msg_send![app, processIdentifier] }
}
@madsmtm
Copy link
Owner

madsmtm commented Dec 22, 2023

Duplicate of #331, see that one for a few more details on why we don't do this type yet (because I want it to be libc::pid_t).

PRs welcome, though I can't guarantee it'll be easy to fix.

@madsmtm madsmtm closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
@madsmtm madsmtm added bug Something isn't working A-framework Affects the framework crates and the translator for them labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants