Skip to Main Content
Xcode 5 Start to Finish: iOS and OS X Development
book

Xcode 5 Start to Finish: iOS and OS X Development

by Fritz Anderson
May 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
19h 43m
English
Addison-Wesley Professional
Content preview from Xcode 5 Start to Finish: iOS and OS X Development

Localizing MainMenu.xib

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Fritz Anderson
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780133751031Purchase book