/Developer/Library/Xcode/Project Templates/Application/Cocoa Application
. Here we see files that are automatically copied to the folder with the new project. Because the annoying word NewApplication we change in Interface Builder, we need the MainMenu.xib
file in the English.lproj
folder. Open it in a text editor and see that NewApplication is there (in the amount of 6 pieces). We need to replace all occurrences of NewApplication
with «PROJECTNAME»
(including quotes «»
). Save, close.
«PROJECTNAME»
with the name of the project. But in order for him to know in which files it needs to be done, he needs to indicate this. To do this, right-click on the CocoaApp.xcodeproj
file and select "Show Package Contents". Open the TemplateInfo.plist
file in a text editor and see the following:
{ FilesToRename = { "CocoaApp_Prefix.pch" = "" PROJECTNAME "_Prefix.pch"; }; FilesToMacroExpand = ( "PROJECTNAME" _Prefix.pch ", "Info.plist", "English.lproj / InfoPlist.strings", "main.m", ); Description = "This project builds a Cocoa-based application written in Objective-C."; }
MainMenu.xib
to the MainMenu.xib
:
"English.lproj / MainMenu.xib",
Source: https://habr.com/ru/post/56623/