- Mastering macOS Programming
- Stuart Grimshaw
- 172字
- 2021-07-02 22:54:23
Creating a new scheme
Let's add a scheme to our SaleTaxCalc app:
- From the schemes menu, select New Scheme..., and call the new scheme SalesTaxCalc Dev. Click OK.
- The scheme is now selected automatically in the schemes menu.
Changing between schemes without reaching for the mouse is easy: type command + control + [ and command + control + ] (square brackets) to move backwards and forwards through the list (which are kind of the same thing when there are only two schemes, of course).
So, now that we have two schemes, let's add some changes to our new SalesTaxCalc Dev scheme. From the schemes menu, select Edit Scheme....
If you are using a US keyboard layout, or one very similar to it, there is a keyboard shortcut to open the currently selected scheme in the scheme editor window, command + <. However, many keyboards, including all the UK, German, and Australian ones lying around here, have the < character as a shifted key, so you'll have to define a custom shortcut.