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

How to bring windows to front in xCode? #18

Open
Jimw338 opened this issue Dec 12, 2020 · 1 comment
Open

How to bring windows to front in xCode? #18

Jimw338 opened this issue Dec 12, 2020 · 1 comment

Comments

@Jimw338
Copy link

Jimw338 commented Dec 12, 2020

I can compile the test file fine in xCode (12, on Big Sur 11.1), and will run correctly if I run the completed project in the Finder or terminal, but if I run it in xCode, it won't display on top of the xCode window. Is there a way to force the window to the front? "makeKeyAndOrderFront" isn't a method of "NSAlert" (why isn't NSAlert a subclass of NSWindow?), nor did calling "[[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps];" work.

Ideas?

@AndrewBelt
Copy link
Owner

NSAlerts definitely behave strangely when launched from Terminal. I don't personally use osdialog in terminal applications, but if you can figure out how to make osdialog_message and osdialog_prompt open the alerts on top of other windows, let me know on this issue or a PR.

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

2 participants