• R/O
  • HTTP
  • SSH
  • HTTPS

hengbandosx: Commit

The master and For2.2.2-Refactoring branches track hengband.

OS X development happens on the version-1-6-2, version-2-2-1, and For2.2.2-Refactoring-Cooca2 branches.


Commit MetaInfo

Revision8f148db5f7118abe1c689135a06c3485ebfa82c4 (tree)
Zeit2020-09-22 10:21:55
AutorEric Branlund <ebranlund@fast...>
CommiterEric Branlund

Log Message

Update the instructions about rebuilding the nib file for Xcode 12.

Ändern Zusammenfassung

Diff

--- a/src/cocoa/AppDelegate.m
+++ b/src/cocoa/AppDelegate.m
@@ -3,7 +3,7 @@
33 * \brief This is a minimal implementation of the OS X front end.
44 *
55 * Use this file to rebuild the .nib file with Xcode without having to pull
6- * in all of the Hengband source. This is the procedure with Xcode 11.3:
6+ * in all of the Hengband source. This is the procedure with Xcode 12:
77 *
88 * 1) Create a new Xcode project for a macOS App.
99 * 2) You can set the "Product Name", "Team", "Organization Name",
@@ -11,18 +11,18 @@
1111 * "hengband" and the "Organization Identifier" to "jp.osdn" will match
1212 * the bundle identifier used in the full builds for Hengband. Set
1313 * "Language" to "Objective-C" and "User Interface" to "XIB". Leave
14- * "Create Document-Based Application" and "Use Core Data" off.
15- * The settings for "Include Unit Tests" and "Include UI Tests" don't
16- * matter; you can turn them off to avoid extra clutter.
17- * 3) When Xcode loads the project, select the topmost category in the file
18- * view ("hengband" with an application icon) and in the Info tab for it
19- * set the deployment target to what's used in Hengband's src/Makefile.am.
20- * When this was written, that was 10.8 and 10.8 is necessary for Base
21- * localization. In the localizations part of that tab, click the '+' and
22- * add a Japanese localization. That will prompt you for the files
23- * involved. Leave that as is: one file, "MainMenu.xib", with Base as the
24- * reference language and localizable strings as the file type.
25- * 4) Copy src/cocoa/AppDelegate.h and src/cocoa/AppDelegate.m from the
14+ * "Use Core Data" off. The setting for "Include Tests" doesn't matter;
15+ * you can turn it off to avoid extra clutter.
16+ * 3) In hengband's project settings on the "Info" tab, set the deployment
17+ * target to what's used in Hengband's src/Makefile.am. When this was
18+ * written, that was 10.8 and 10.8 is necessary for Base localization.
19+ * In the localizations part of that tab, click the '+' and add a Japanese
20+ * localization. That will prompt you for the files involved. Leave that
21+ * as is: one file, "MainMenu.xib", with Base as the reference language
22+ * and localizable strings as the file type.
23+ * 4) In hengband's targets on the "General" tab, verify that "Main Interface"
24+ * is MainMenu.
25+ * 5) Copy src/cocoa/AppDelegate.h and src/cocoa/AppDelegate.m from the
2626 * Hengband source files to the directory in the project with main.m. Copy
2727 * src/cocoa/Base.lproj/MainMenu.xib to the Base.lproj subdirectory of that
2828 * directory. Copy src/cocoa/ja.lproj/MainMenu.strings to the ja.lproj
@@ -50,8 +50,8 @@
5050 * The result of that will be to regenerate ja.lproj/MainMenu.strings in the
5151 * Xcode project files which you can use to replace the version in
5252 * src/cocoa/ja.lproj/MainMenu.strings in the Hengband source code.
53- * 7) Use Xcode's Product->Build For->Running menu entry to build the project.
54- * 8) The generated .nib file for English will be
53+ * 8) Use Xcode's Product->Build For->Running menu entry to build the project.
54+ * 9) The generated .nib file for English will be
5555 * Contents/Resources/Base.lproj/MainMenu.nib in the product directory which
5656 * is something like
5757 * ~/Library/Developer/Xcode/DerivedData/<product_name>-<some_string>/Build/Products/Debug/<product_name>.app
Show on old repository browser