Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Gabberke

macrumors newbie
Original poster
Jun 19, 2013
4
0
Baal - Belgium
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.
 
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.
 
Let's walk down this path together . . .

Good luck and keep on coding!

Stop by to ask as questions come up, as I'm sure they will.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.