One More Thing
Passer Rating is supposed to calculate passer ratings, which is a problem you already solved. Let’s add your solution to the project. Select File →Add Files to “Passer Rating”... (A). Xcode opens a modified get-file sheet (Figure 8.5). Track down rating.h and rating.c from the old passer-rating project and command-click them to select both. Don’t click Add yet because there’s more to do.
Figure 8.5. When you add files to a project, you have some options controlling whether to use the files in-place and how to use them.
Check the box labeled Copy items into destination group’s folder (if needed). That adds copies of the files to Passer Rating’s project directory. It sometimes makes sense not to do this, as when you want to share a common copy of files across projects, but for now, this is the least complicated way to go. You’ll see a better way to do the same thing later.
Under Folders, you can decide how Xcode treats any directories you add. It can represent them in the Project navigator by group folders, as an organizational aid, or it can have the project refer to the directories themselves as the objects the project contains. The latter makes sense if you want to include a whole directory of data files in your product. You’re not adding any directories, so this isn’t an issue, but it’s a good idea to make sure the setting is Create groups for any added folders because it’s usually the safer action to take.
Now you can click Add.