Beginners questions - showing a Label object and Push Button on the screen

Discussion in 'Mac Programming' started by Gabberke, Jun 19, 2013.

  1. Gabberke macrumors newbie

    Jun 19, 2013
    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.


  2. Gabberke thread starter macrumors newbie

    Jun 19, 2013
    Baal - Belgium
    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.

  3. PatrickCocoa macrumors 6502a

    Dec 2, 2008
    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.

Share This Page