Xcode - IB problems

  • I'm working my my way though the new edition of Cocoa programming and
    am having some problems with XCode and Interface Builder.
    1) I'll create a project in XCode and save.
    2) switch to IB (via the MainMenu.nib to get the layout down. Save.
    3) Create a new class in XCode, put in a few IBActions and Outlets,
    save.
    4) Back to IB, drag over an object, set it to the correct class.
    5) SOMETIMES the Actions and/or the outlets will show up and sometimes
    not. I can see no pattern but more often than not, they don't. This
    latest project I followed exactly the steps and code in the book, none
    of the actions or outlets showed up. I threw out the project and
    recreated it. This time the actions showed up (but no outlets).

    Am I doing something wrong and missing it or is this way of doing
    things just not as reliable? Should the class be created before ever
    going to IB? Should I create all the actions and outlets in IB and let
    it create the class?

    Ashley Perrien
    Random Quote of the day:
    "If you understand what you're doing, you're not learning anything."
    -Abraham Lincoln
  • On Sun, Jun 1, 2008 at 8:56 PM, Ashley Perrien <perrien...> wrote:

    > Should I create all the actions and outlets in IB and let it create the
    > class?

    No. I'm not even sure that's possible in the latest version of IB.
    What version are you using?

    Hamish
  • Hamish Allan wrote:
    > On Sun, Jun 1, 2008 at 8:56 PM, Ashley Perrien <perrien...> wrote:
    >
    >> Should I create all the actions and outlets in IB and let it create the
    >> class?
    >
    > No. I'm not even sure that's possible in the latest version of IB.
    > What version are you using?

    It is still possible, but not necessary in Xcode 3.0+.

    Usually, when I have the trouble described by the OP, I have some typos
    in my .h files for the classes.

    >
    > Hamish
  • > Usually, when I have the trouble described by the OP, I have some
    > typos in my .h files for the classes.

    Which was the problem here, only noticed it a few minutes after
    sending the email. I think I'm just forgetting some basic syntax
    peculiarities. Sorry for the clutter.

    Ashley Perrien
    Ponder This:
    "Success is relative. It is what we can make of the mess we have made
    of things."
    -TS Eliot
previous month june 2008 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Go to today