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

Use Cocoa API for window activation/deactivation handling #164

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

olebole
Copy link
Member

@olebole olebole commented Mar 7, 2024

This just replaces GetCurrentProcess(), GetFrontProcess(), SetFrontProcess() and CPSSetProcessName() with their Cocoa counterparts.
The undocumented function CPSEnableForegroundOperation() is removed as it seems that it is no longer needed.

Tested on an Intel Mac, Catalina 10.15.7 and Sonoma 14.4. @mjfitzpatrick could you test this on a Sonoma ARM Mac (pip3 install git+https://github.com/iraf-community/pyraf@cocoa)?

Fixes #163

@olebole olebole force-pushed the cocoa branch 2 times, most recently from 8305da9 to f481500 Compare March 7, 2024 15:06
@olebole
Copy link
Member Author

olebole commented Mar 29, 2024

I didn't get feedback from @mjfitzpatrick here, so I am no sure whether this is resolved for ARM64. However, since it works for Intel, I would guess the same for Mac, thus merging. Please file a new issue if there are still problems.

@olebole olebole merged commit 9460078 into main Mar 29, 2024
5 checks passed
@olebole olebole deleted the cocoa branch March 29, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Installation of pyobjc breaks pyraf on a MacOS Sonoma (14.3) system
1 participant