How to add an action or exit to a class in Xcode 4.3.1?

I follow the slightly outdated manual from cocoalab.com ( Become an Xcoder ) to learn the basics of cocoa, but I am stuck in one of the instructions.

On page 45 (section 08: 9) in the “Creating Connections” section, he tells me to select an instance of my new class and from the Identity Inspector to add two actions and an exit.

I am using Xcode 4.3.1, which is obviously slightly different from the version for which this tutorial was written, but I cannot figure out how to make an equivalent in this newer version.

Can anyone help by giving me step-by-step instructions on how to add them to my object.

+2
source share
3 answers

Open the Editor’s Assistant (red box in the screenshot). Then, from Interface Builder, press ctrl and drag the mouse from the button (or other control in your view) into the .h file.

enter image description here

You will be prompted to select the type of connection to create, as shown in the screenshot below:

enter image description here

+7
source

I would suggest following a good and easy tutorial on developer.apple.com to find the "First iOS app."

This explains how to add output, and the action is all using the latest version of Xcode. It will not take you much time, but you can speed up work with all the necessary functions.

Hope this helps :)

0
source

you should start with these guides, it shows several ways how connections are created in the following videos http://www.youtube.com/watch?v=X_MJd8wqTBM

-1
source

All Articles