Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

cocoa: Activate the NSApplication instance after the event loop is set up, and use orderFrontRegardless to more reliably pop up the main window. #96

Merged
merged 1 commit into from
Jun 11, 2016

Conversation

pcwalton
Copy link

@pcwalton pcwalton commented Jun 11, 2016

This makes the menus work right away when the app is started.

See e.g. http://czak.pl/2015/09/23/single-file-cocoa-app-with-swift.html

r? @metajack


This change is Reviewable

@pcwalton
Copy link
Author

Needs servo/cocoa-rs#132

up, and use `orderFrontRegardless` to more reliably pop up the main
window.

This makes the menus work right away when the app is started.

See e.g. http://czak.pl/2015/09/23/single-file-cocoa-app-with-swift.html
@metajack
Copy link

@bors-servo r+

Previously, pcwalton (Patrick Walton) wrote…

Needs servo/cocoa-rs#132


Reviewed 1 of 1 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bors-servo
Copy link

📌 Commit 56a9c63 has been approved by metajack

@bors-servo
Copy link

⌛ Testing commit 56a9c63 with merge a8f834a...

bors-servo pushed a commit that referenced this pull request Jun 11, 2016
cocoa: Activate the `NSApplication` instance after the event loop is set up, and use `orderFrontRegardless` to more reliably pop up the main window.

This makes the menus work right away when the app is started.

See e.g. http://czak.pl/2015/09/23/single-file-cocoa-app-with-swift.html

r? @metajack

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/96)
<!-- Reviewable:end -->
@bors-servo
Copy link

☀️ Test successful - travis

@bors-servo bors-servo merged commit 56a9c63 into servo:servo Jun 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants