Saturday, January 29, 2011

Before we start

If you are reading from my first port you should be thinking "When the hell do I start coding?", at least that was what i thought when reading some tutorials.
Before we put our fingers on the keyboard and writing some code it is important that we understand how the IDE works.

There are two tools that you need to get familiar with: Xcode and Interface Builder.

Very briefly, Xcode is where you write your code and Interface Builder allows you to design the interface of you application. We will get into more detail on these tools later.

These tools work together in order to define how the interface will be linked to your code.
Basically, Interface Builder provides two things to you application, actions, for instance, when you press a button you are invoking a action, and outlets. The outlets are objects with which your program can interact to provide feedback.

Take this example, if you were writing a program that woud execute a task when you press a button updating a progress bar to indicate the amount of the task that has been completed. In this example, the button provides an action (when you press it) and the progress bas is the outlet that gives you feedback on the completion of the task.

No comments:

Post a Comment