May 2014
Intermediate to advanced
624 pages
19h 43m
English
In Xcode 4 Unleashed, this was not a pleasant section to read, nor to write. Localizing a XIB entailed going to the command line to analyze the original, extract all the strings, generate a .strings file, then synthesize the original and the translated strings into a new, localized XIB. Which you must care for for life.
Things are better with Xcode 5. When you choose to localize an Interface Builder resource, Xcode takes care of extracting the strings, and AppKit reads the .strings file directly when it loads the resource and substitutes the translations. Select MPRGameViewController.xib from the Project navigator. As before, it’s shown as a group, and clicking it displays the primary version—in this case, the one-and-only ...