PDA

View Full Version : Beginners questions - showing a Label object and Push Button on the screen




Gabberke
Jun 19, 2013, 12:40 PM
I recently bought the book "MAX Programming for Absolute beginners".
I would like to make some programs in XCODE. My problem is that one of the first examples described in the book aren't working - I presume the error is on my side.

I just would like to show a Label object and push button on my screen.

1. According to the book I need to double click on the "MainMenu.xib" file.
2. The Interface Builder window appears
3. I need to drag, out of the library, the label object and push button inside the window.
4. I need to double-click on the Label object and put a text in the Label object (e.g. Hello World).
5. Same for the push button ==> drag in inside the window and put a text in the object.
6. Finally I need to save the changes and to a Build and Run.

When I execute the Build and Run, a window is shown, but the windows is empty. I doesn't show the label object nor the push button.

Can somebody explain what I am doing wrong?

I know that it is really a beginners question but I can't figure out what I am doing wrong.

Thanks.

G.



Gabberke
Jun 19, 2013, 01:10 PM
You may discard my post because I found out what I've done wrong.

The problem was that I didn't put the objects within the window of my test program. Now it is working.

G.

PatrickCocoa
Jun 19, 2013, 02:11 PM
Good luck and keep on coding!

Stop by to ask as questions come up, as I'm sure they will.