I'm exploring the NavBar example from the iPhone dev center.
More specifically, I'm trying to understand where the MainViewController object is instantiated and I simply can't find where this is happening.
The only references to the MainViewController class is in AppDelegate, where there is a forward declaration and #import. However, removing these sentences doesn't affect the program whatsoever.
The object is probably created in the nib file, but again, I can't find it.
I really like the Xcode development environment. What I don't like, however, is that there are some many different places where objects can be created/connected that it makes it really hard to understand somebody else's code.
Any help will be appreciated.