In order for this program to work it is important that you set the delegates properly. In the case of this program. Here are the delegates needed. Make sure that in your own implementation that these connections are set properly. In Interface Builder: Connection from-to: Delegate the TheWindow to the MyWindowObject Delegate File Owner to WindowObject