From: Eric Branlund Date: Tue, 22 Sep 2020 00:25:44 +0000 (-0700) Subject: Update the instructions about rebuilding the nib file for Xcode 12. X-Git-Tag: vmacos1.6.2-b~25 X-Git-Url: http://git.osdn.net/view?p=hengbandforosx%2Fhengbandosx.git;a=commitdiff_plain;h=18cbf7cda410603356b6565b15c9f448253620ff Update the instructions about rebuilding the nib file for Xcode 12. --- diff --git a/src/cocoa/AppDelegate.m b/src/cocoa/AppDelegate.m index 19d6e787c..80e1545e6 100644 --- a/src/cocoa/AppDelegate.m +++ b/src/cocoa/AppDelegate.m @@ -3,7 +3,7 @@ * \brief This is a minimal implementation of the OS X front end. * * Use this file to rebuild the .nib file with Xcode without having to pull - * in all of the Hengband source. This is the procedure with Xcode 11.3: + * in all of the Hengband source. This is the procedure with Xcode 12: * * 1) Create a new Xcode project for a macOS App. * 2) You can set the "Product Name", "Team", "Organization Name", @@ -11,18 +11,18 @@ * "hengband" and the "Organization Identifier" to "jp.osdn" will match * the bundle identifier used in the full builds for Hengband. Set * "Language" to "Objective-C" and "User Interface" to "XIB". Leave - * "Create Document-Based Application" and "Use Core Data" off. - * The settings for "Include Unit Tests" and "Include UI Tests" don't - * matter; you can turn them off to avoid extra clutter. - * 3) When Xcode loads the project, select the topmost category in the file - * view ("hengband" with an application icon) and in the Info tab for it - * set the deployment target to what's used in Hengband's src/Makefile.am. - * When this was written, that was 10.8 and 10.8 is necessary for Base - * localization. In the localizations part of that tab, click the '+' and - * add a Japanese localization. That will prompt you for the files - * involved. Leave that as is: one file, "MainMenu.xib", with Base as the - * reference language and localizable strings as the file type. - * 4) Copy src/cocoa/AppDelegate.h and src/cocoa/AppDelegate.m from the + * "Use Core Data" off. The setting for "Include Tests" doesn't matter; + * you can turn it off to avoid extra clutter. + * 3) In hengband's project settings on the "Info" tab, set the deployment + * target to what's used in Hengband's src/Makefile.am. When this was + * written, that was 10.8 and 10.8 is necessary for Base localization. + * In the localizations part of that tab, click the '+' and add a Japanese + * localization. That will prompt you for the files involved. Leave that + * as is: one file, "MainMenu.xib", with Base as the reference language + * and localizable strings as the file type. + * 4) In hengband's targets on the "General" tab, verify that "Main Interface" + * is MainMenu. + * 5) Copy src/cocoa/AppDelegate.h and src/cocoa/AppDelegate.m from the * Hengband source files to the directory in the project with main.m. Copy * src/cocoa/Base.lproj/MainMenu.xib to the Base.lproj subdirectory of that * directory. Copy src/cocoa/ja.lproj/MainMenu.strings to the ja.lproj @@ -50,8 +50,8 @@ * The result of that will be to regenerate ja.lproj/MainMenu.strings in the * Xcode project files which you can use to replace the version in * src/cocoa/ja.lproj/MainMenu.strings in the Hengband source code. - * 7) Use Xcode's Product->Build For->Running menu entry to build the project. - * 8) The generated .nib file for English will be + * 8) Use Xcode's Product->Build For->Running menu entry to build the project. + * 9) The generated .nib file for English will be * Contents/Resources/Base.lproj/MainMenu.nib in the product directory which * is something like * ~/Library/Developer/Xcode/DerivedData/-/Build/Products/Debug/.app