Game Development Reference
In-Depth Information
Start with an ARC-enabled cocos2d Pro-
ject
Cocos2d users should follow the instructions in Chapter 2 to create an ARC-enabled
cocos2d project. If you've already done so then just make a copy of the project you've
created. Here's an important time-saver: keep an unmodified version of such an original
cocos2d project template converted to ARC enabled around, so you can create new
projects easily and quickly.
Tip In the topic's source code you'll find ARC-enabled cocos2d template pro-
jects in the Cocos2D_ARC_Template_Projects folder.
After following the instructions in Chapter 2 , you'll have an ARC-enabled cocos2d
project. Mine is named cocos2d-2.x-ARC-iOS . Simply make a copy of the folder
that contains the .xcodeproj file before opening it in Xcode. Don't rename the
.xcodeproj file itself, though, because doing so would render it unusable.
Now you can rename the project from within Xcode, which will also rename the
.xcodeproj file. In the Project Navigator select the cocos2d-2.x-ARC-iOS project
(the first entry, see Figure 2-5 in Chapter 2 ) and edit it with a delayed double-click.
That means click it once to select it, wait a second or two, then click it again, and the
project's name will become editable. Enter DoodleDrop as the name for the project.
After you press Enter to confirm the change, Xcode will ask you to confirm renaming
several items, as seen in Figure 4-2 . You should confirm by clicking Rename. If you
click Don't Rename, Xcode will still have renamed the project but all other items are
not. So even if you recognize a typo or don't like the name, click Rename anyway. You
may also see a warning, “New name for file can not be the same,” regarding the Pre-
fix.pch file after renaming. You can safely ignore that warning.
 
Search Nedrilad ::




Custom Search