This is for you cocoa developers out there.
A common error I keep making is forgetting to set an outlet in Interface Builder. Usually I catch the problem pretty quickly but once in a blue moon it can leave me scratching my head for too long a period of time to confess here.
I love problems that can be engineered away and after making this mistake yet again, I decided to solve it once and for all. I'm sharing the solution because it has worked out splendidly.
The following code parses your header file for outlets and makes sure that they are set at runtime.