Information Technology Reference
In-Depth Information
The new nib files are bundled with the application, and the nib loader reads a user's localization settings to se-
lect and load the correct nib for each country automatically.
FIGURE 8.17
Adding support for a non-English language
TIP
Adding too many languages bloats the project with many almost identical nib files. Although Apple promotes
multi-language support, realism suggests it's more practical to support the smallest possible selection of languages.
As a workaround, you can use a single nib file and set the labels on launch with text loaded from the .strings file.
This option takes longer to code, but is easier to expand and creates a much smaller final bundle.
IB doesn't support non-English text unless you're already using a non-English keyboard. Use the Character
Viewer utility shown in Figure 8.18 to add accents, special symbols, and letters from non-English alphabets. To
open the Character Viewer, select the Keyboard item in System Preferences and enable the Show Keyboard &
Character Viewer in menu bar option. Click the flag icon that appears in the menu bar, and select Show Charac-
ter Viewer from the menu. Select special characters as needed, and use the Insert button to add them while edit-
ing text.
FIGURE 8.18
Using the Character Viewer utility to add non-English characters to a nib
Search WWH ::




Custom Search