Scoreboard: A demonstration of RTL support on macOS using NSStackView and localizedStringWithFormat
Last Revision: | Version 1.0, 2016-10-27 First release |
Build Requirements: | Xcode 8.0 or later; macOS 10.12 SDK or later |
Runtime Requirements: | macOS 10.12 or later |
This sample project illustrates the usage of Appkit controls and Auto Layout constraints in a MacOS project. By using standard Appkit controls such as NSTableView and NStackView and laying out the views with Auto Layout, the UI automatically adapt to Right-to-Left languages, without adding special logic to mirror the UI for these langyages. This sample also shows how to render bidirectional text (mixed directionality scripts) correctly without adding logic to your variables.
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-10-27