This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
forked from rust-windowing/glutin
-
Notifications
You must be signed in to change notification settings - Fork 33
cocoa: Add some bare-bones menus on the Mac to conform better to the Apple Human Interface Guidelines. #88
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
||
// Set `CFBundleName` appropriately. | ||
if let Some(app_name) = app_name { | ||
let info_dictionary = CFBundle::main_bundle().info_dictionary(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did that require a change in core-foundation-rs?
Can't compile:
|
This is a bit dodgy: it takes advantage of the fact that bundle dictionaries are mutable. But we don't really have another choice without going to a `.app` bundle, which is incompatible with the way Cargo works.
Apple Human Interface Guidelines. For now, we only add menu items that are either completely implemented by Cocoa or implemented ourselves. This means that, in particular, the Edit and Help menus are absent, since Glutin does not implement these features yet. Requires servo/cocoa-rs#125.
@paulrouget Dependency changes have landed. Should build now. r? |
r+ |
@bors-servo: r=paulrouget |
📌 Commit 5787230 has been approved by |
bors-servo
pushed a commit
that referenced
this pull request
May 17, 2016
cocoa: Add some bare-bones menus on the Mac to conform better to the Apple Human Interface Guidelines. Includes #86. Requires servo/cocoa-rs#125. r? @paulrouget <!-- 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/88) <!-- Reviewable:end -->
☀️ Test successful - travis |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Includes #86.
Requires servo/cocoa-rs#125.
r? @paulrouget
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)