I’m trying to figure how to look at or manipulate the code behind views I’ve created in tutorial applications I’ve copied.
I understand that you are supposed to “control” the views using a view controller. The part that’s confusing me is that when I follow the tutorials, I’m clicking on my view objects, setting the delegate, but I don’t see where that is acutally happening in the code. Are you able to see the code that makes up a view or is that totally hidden from you?
You mean when you are dragging views around visually when you open a nib?
The objects you create and the connections you make are saved to an XML file. When Xcode builds your application, these are then converted to a more efficient binary file format.
When your application runs, the binary file is read, and the objects described within are instantiated. Where connections are made, the nib loading part of the platform uses Key-Value Coding to set the outlets and properties on related objects, most often the nib owner.
You can see the XML representation of your views by right-clicking on the nib in the project navigator panel on the left-hand side, then selecting Open As | Source Code.