Monday, January 15, 2007

Project Omega Tutorials


Last night before going to bed, I walked through the following tutorial: http://www.projectomega.org/article.php?lg=en&php=tuts_cocoa2&p=1

It shows the connection of outlets and actions within a NIB.

I realized that this is where we bring together the two worlds of code and UI. By control-dragging between the controller(s) and UI elements, we are tying them together. The code sends messages to textZone, which I had mistakenly tied to the edit box by the slider instead of the text field blow the button. Light bulb. My code doesn't change but I can change which UI element gets altered by changing the connections.

I love learning... this.

No comments: