For testing/experimenting, I just have a dummy project set up with a bunch of properties (such as myButton, myTextField, myString, etc) with matching empty actions (such as doButtonStuff, doTextFieldStuff, doStringStuff, etc). These are connected to matching UI items in Interface Builder, so if I see a code snippet I want to explore, it is fairly easy to drop into the project.
It also helps that the various objects are connected directly to their instance property, so those long-winded object descriptions aren't needed and you can move the objects around without having to figure out the new location. You will probably still have a bunch of fun playing the build-and-find-the-error game, but once a dummy project is set up you only have to deal with the new code.
Dave
|