The NSStringFromClass method is very helpful in this example for printing out the name of the class without having to enter dozens of matching strings. It’s one of the cool runtime features of the Objective-C language that you’re able to get a class’s name as a string .
The Objective-C Runtime Programming Guide is agood starting point if you like to dive into this advanced topic or if you just want to learn howObjective-C works on a lower level:
For game-play code, the NSStringFromClass and related methods hardly play any role, butthey’re very helpful debugging and logging tools. You can find a complete list and description ofthese methods in Apple’s Foundation Function Reference:
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html.
If your example particle effects, like this CCParticleFireworks, display huge, square particles, you forgot to add the fire.png image to your Xcode project.