Skip to content

Commit 7249344

Browse files
authored
Merge pull request electron#290 from ergenekonyigit/master
Rename OS X to macOS
2 parents ba0a9ba + 7fce3ec commit 7249344

File tree

14 files changed

+36
-36
lines changed

14 files changed

+36
-36
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://travis-ci.org/electron/electron-api-demos.svg?branch=master)](https://travis-ci.org/electron/electron-api-demos)
44
[![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com)
55

6-
This is a desktop app that interactively and with sample code demonstrates core features of the [Electron](http://electron.atom.io) API. It's built with Electron, too, of course. This app works on Windows, OS X and Linux operating systems.
6+
This is a desktop app that interactively and with sample code demonstrates core features of the [Electron](http://electron.atom.io) API. It's built with Electron, too, of course. This app works on Windows, macOS and Linux operating systems.
77

88
Use this app to see what you can do with Electron and use the source code to learn how to create a basic Electron app.
99

sections/communication/ipc.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3>The <code>ipc</code> (inter-process communication) module allows you to send
1616
<div class="demo">
1717
<div class="demo-wrapper">
1818
<button id="async-msg-demo-toggle" class="js-container-target demo-toggle-button">Asynchronous messages
19-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
19+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
@@ -37,7 +37,7 @@ <h5>Main Process</h5>
3737
<div class="demo">
3838
<div class="demo-wrapper">
3939
<button id="sync-msg-demo-toggle" class="js-container-target demo-toggle-button">Synchronous messages
40-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
40+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
4141
</button>
4242
<div class="demo-box">
4343
<div class="demo-controls">
@@ -57,7 +57,7 @@ <h5>Main Process</h5>
5757
<div class="demo">
5858
<div class="demo-wrapper">
5959
<button id="invis-msg-demo-toggle" class="js-container-target demo-toggle-button">Communicate with an invisible window
60-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
60+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
6161
</button>
6262
<div class="demo-box">
6363
<div class="demo-controls">

sections/media/desktop-capturer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3>The <code>desktopCapturer</code> module in Electron can be used to access an
1515
<div class="demo">
1616
<div class="demo-wrapper">
1717
<button id="print-pdf-demo-toggle" class="js-container-target demo-toggle-button">Take a Screenshot
18-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux | Process: Renderer</div>
18+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux | Process: Renderer</div>
1919
</button>
2020
<div class="demo-box">
2121
<div class="demo-controls">

sections/media/pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3>The <code>browser window</code> module in Electron has a property, <code>web
1515
<div class="demo">
1616
<div class="demo-wrapper">
1717
<button id="print-pdf-demo-toggle" class="js-container-target demo-toggle-button">Print to PDF
18-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux</div>
18+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux</div>
1919
</button>
2020
<div class="demo-box">
2121
<div class="demo-controls">

sections/menus/menus.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>The <code>Menu</code> and <code>MenuItem</code> modules can be used to creat
1717
<div class="demo">
1818
<div class="demo-wrapper">
1919
<button id="application-menu-demo-toggle" class="js-container-target demo-toggle-button">Create an application menu
20-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
20+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
2121
</button>
2222
<div class="demo-box">
2323
<p>The <code>Menu</code> and <code>MenuItem</code> modules allow you to customize your application menu. If you don't set any menu, Electron will generate a minimal menu for your app by default.</p>
@@ -32,7 +32,7 @@ <h2>ProTip</h2>
3232
<p>When designing an app for multiple operating systems it's important to be mindful of the ways application menu conventions differ on each operating system.</p>
3333
<p>For instance, on Windows, accelerators are set with an <code>&</code>. Naming conventions also vary, like between "Settings" or "Preferences". Below are resources for learning operating system specific standards.</p>
3434
<ul>
35-
<li><a href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/MenuBarMenus.html#//apple_ref/doc/uid/20000957-CH29-SW1">OS X<span class="u-visible-to-screen-reader">(opens in new window)</span></a></li>
35+
<li><a href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/MenuBarMenus.html#//apple_ref/doc/uid/20000957-CH29-SW1">macOS<span class="u-visible-to-screen-reader">(opens in new window)</span></a></li>
3636
<li><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb226797(v=vs.85).aspx">Windows<span class="u-visible-to-screen-reader">(opens in new window)</span></a></li>
3737
<li><a href="https://developer.gnome.org/hig/stable/menu-bars.html.en">Linux<span class="u-visible-to-screen-reader">(opens in new window)</span></a></li>
3838
</ul>
@@ -44,7 +44,7 @@ <h2>ProTip</h2>
4444
<div class="demo">
4545
<div class="demo-wrapper">
4646
<button id="context-menu-demo-toggle" class="js-container-target demo-toggle-button">Create a context menu
47-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
47+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
4848
</button>
4949
<div class="demo-box">
5050
<div class="demo-controls">

sections/menus/shortcuts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3>The <code>globalShortcut</code> and <code>Menu</code> modules can be used to
3131
<div class="demo">
3232
<div class="demo-wrapper">
3333
<button id="shortcuts-demo-toggle" class="js-container-target demo-toggle-button">Register a global keyboard shortcut
34-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
34+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
3535
</button>
3636
<div class="demo-box">
3737
<p>
@@ -58,7 +58,7 @@ <h2>ProTip</h2>
5858
</p>
5959

6060
<ul>
61-
<li><a class="u-exlink" href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/Keyboard.html">OS X</a></li>
61+
<li><a class="u-exlink" href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/Keyboard.html">macOS</a></li>
6262
<li><a class="u-exlink" href="http://windows.microsoft.com/en-us/windows-10/keyboard-shortcuts">Windows</a></li>
6363
<li><a class="u-exlink" href="https://developer.gnome.org/hig/stable/keyboard-input.html.en">Linux</a></li>
6464
</ul>

sections/native-ui/dialogs.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>The <code>dialog</code> module in Electron allows you to use native system d
1717
<div class="demo">
1818
<div class="demo-wrapper">
1919
<button id="open-file-demo-toggle" class="js-container-target demo-toggle-button">Open a File or Directory
20-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
20+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
2121
</button>
2222
<div class="demo-box">
2323
<div class="demo-controls">
@@ -32,8 +32,8 @@ <h5>Main Process</h5>
3232

3333
<div class="demo-protip">
3434
<h2>ProTip</h2>
35-
<strong>The sheet-style dialog on OS X.</strong>
36-
<p>On OS X you can choose between a "sheet" dialog or a default dialog. The sheet version descends from the top of the window. To use sheet version, pass the <code>window</code> as the first argument in the dialog method.</p>
35+
<strong>The sheet-style dialog on macOS.</strong>
36+
<p>On macOS you can choose between a "sheet" dialog or a default dialog. The sheet version descends from the top of the window. To use sheet version, pass the <code>window</code> as the first argument in the dialog method.</p>
3737
<pre><code class="language-js">const ipc = require('electron').ipcMain
3838
const dialog = require('electron').dialog
3939
const BrowserWindow = require('electron').BrowserWindow
@@ -51,7 +51,7 @@ <h2>ProTip</h2>
5151
<div class="demo">
5252
<div class="demo-wrapper">
5353
<button id="error-dialog-demo-toggle" class="js-container-target demo-toggle-button">Error Dialog
54-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
54+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
5555
</button>
5656
<div class="demo-box">
5757
<div class="demo-controls">
@@ -71,7 +71,7 @@ <h5>Main Process</h5>
7171
<div class="demo">
7272
<div class="demo-wrapper">
7373
<button id="information-dialog-demo-toggle" class="js-container-target demo-toggle-button">Information Dialog
74-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
74+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
7575
</button>
7676
<div class="demo-box">
7777
<div class="demo-controls">
@@ -80,7 +80,7 @@ <h5>Main Process</h5>
8080
</div>
8181
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the information dialog. Options may be provided for responses which can then be relayed back to the renderer process.</p>
8282

83-
<p>Note: The <code>title</code> property is not displayed in OS X.</p>
83+
<p>Note: The <code>title</code> property is not displayed in macOS.</p>
8484

8585
<p>An information dialog can contain an icon, your choice of buttons, title and message.</p>
8686
<h5>Renderer Process</h5>
@@ -94,7 +94,7 @@ <h5>Main Process</h5>
9494
<div class="demo">
9595
<div class="demo-wrapper">
9696
<button id="save-dialog-demo-toggle" class="js-container-target demo-toggle-button">Save Dialog
97-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
97+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Main</div>
9898
</button>
9999
<div class="demo-box">
100100
<div class="demo-controls">

sections/native-ui/ex-links-file-manager.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3>The <code>shell</code> module in Electron allows you to access certain nativ
1616
<div class="demo">
1717
<div class="demo-wrapper">
1818
<button id="open-file-manager-demo-toggle" class="js-container-target demo-toggle-button">Open Path in File Manager
19-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
19+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
@@ -33,7 +33,7 @@ <h5>Renderer Process</h5>
3333
<div class="demo">
3434
<div class="demo-wrapper">
3535
<button id="open-ex-links-demo-toggle" class="js-container-target demo-toggle-button">Open External Links
36-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
36+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
3737
</button>
3838
<div class="demo-box">
3939
<div class="demo-controls">

sections/native-ui/tray.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3>The <code>tray</code> module allows you to create an icon in the operating s
1616
<div class="demo">
1717
<div class="demo-wrapper">
1818
<button id="tray-demo-toggle" class="js-container-target demo-toggle-button">Tray
19-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux | Process: Main</div>
19+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux | Process: Main</div>
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">

sections/system/app-sys-information.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3>With a few Node.js and Electron modules you can gather information about the
1414
<div class="demo">
1515
<div class="demo-wrapper">
1616
<button id="app-info-demo-toggle" class="js-container-target demo-toggle-button">Get app information
17-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
17+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
1818
</button>
1919
<div class="demo-box">
2020
<div class="demo-controls">
@@ -35,7 +35,7 @@ <h5>Main Process</h5>
3535
<div class="demo">
3636
<div class="demo-wrapper">
3737
<button id="app-info-demo-toggle" class="js-container-target demo-toggle-button">Get version information
38-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
38+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
3939
</button>
4040
<div class="demo-box">
4141
<div class="demo-controls">
@@ -66,7 +66,7 @@ <h2>ProTip</h2>
6666
<div class="demo">
6767
<div class="demo-wrapper">
6868
<button id="sys-info-demo-toggle" class="js-container-target demo-toggle-button">Get system information
69-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
69+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
7070
</button>
7171
<div class="demo-box">
7272
<div class="demo-controls">
@@ -86,7 +86,7 @@ <h5>Renderer Process</h5>
8686
<div class="demo">
8787
<div class="demo-wrapper">
8888
<button id="screen-info-demo-toggle" class="js-container-target demo-toggle-button">Get screen information
89-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
89+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
9090
</button>
9191
<div class="demo-box">
9292
<div class="demo-controls">

sections/system/clipboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3>The <code>clipboard</code> module provides methods to perform copy and paste
1616
<div class="demo">
1717
<div class="demo-wrapper">
1818
<button id="copy-to-demo-toggle" class="js-container-target demo-toggle-button">Copy
19-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
19+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
@@ -33,7 +33,7 @@ <h5>Renderer Process</h5>
3333
<div class="demo">
3434
<div class="demo-wrapper">
3535
<button id="paste-to-demo-toggle" class="js-container-target demo-toggle-button">Paste
36-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
36+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS, Linux <span class="demo-meta-divider">|</span> Process: Both</div>
3737
</button>
3838
<div class="demo-box">
3939
<div class="demo-controls">

sections/system/protocol-handler.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ <h3>The <code>app</code> module provides methods for handling protocols.</h3>
1616
<div class="demo">
1717
<div class="demo-wrapper">
1818
<button id="copy-to-demo-toggle" class="js-container-target demo-toggle-button">Launch app from URL in another app
19-
<div class="demo-meta u-avoid-clicks">Supports: Win, OS X <span class="demo-meta-divider">|</span> Process: Main</div>
19+
<div class="demo-meta u-avoid-clicks">Supports: Win, macOS <span class="demo-meta-divider">|</span> Process: Main</div>
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
2323
<button class="demo-button" id="protocol-handler">View Demo</button>
2424
</div>
2525
<p>You can set your app as the default app to open for a specific protocol. For instance, in this demo we set this app as the default for <code>electron-api-demos://</code>. The demo button above will launch a page in your default browser with a link. Click that link and it will re-launch this app.</p>
2626
<h5>Packaging</h5>
27-
<p>This feature will only work on OS X when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the OS X <code>plist</code> for the app is updated to include the new protocol handler. If you're using <code>electron-packager</code> then you can add the flag <code>--extend-info</code> with a path to the <code>plist</code> you've created. The one for this app is below.</p>
27+
<p>This feature will only work on macOS when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the macOS <code>plist</code> for the app is updated to include the new protocol handler. If you're using <code>electron-packager</code> then you can add the flag <code>--extend-info</code> with a path to the <code>plist</code> you've created. The one for this app is below.</p>
2828
<h5>Renderer Process</h5>
2929
<pre><code data-path="renderer-process/system/protocol-handler.js"></pre></code>
3030
<h5>Main Process</h5>
3131
<pre><code data-path="main-process/system/protocol-handler.js"></pre></code>
32-
<h5>OS X plist</h5>
32+
<h5>macOS plist</h5>
3333
<pre><code class="language-xml" data-path="assets/mac/info.plist"></pre></code>
3434
</div>
3535
</div>

0 commit comments

Comments
 (0)