creating a class in interface builder

Discussion in 'Mac Programming' started by dbchan, Aug 18, 2008.

  1. dbchan macrumors newbie

    Joined:
    Jun 28, 2008
    #1
    so i think the problem i'm having is that i have the newer version of Xcode, and an older version of "Cocoa Programming for Mac OS X" by Aaron Hillegass.

    page 20, creating a class. says to click on the classes tab in the interface builder menu.

    ... i don't have a classes tab there.

    maybe its been moved to a different place, maybe i'm just a complete noob and i am missing something entirely. either way, anyone got anything for me?

    much thanks. :apple:
     
  2. MrFusion macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #2
    I don't have the new xCode, yet. But in the old version, there are two ways to create a class in interface builder. One way is as you describe, the other way is to create a new class in xCode and load that new class from within interface builder, "Read files" under "classes". Maybe this second method still works in the new version.
    This second way is actually much nicer do to things. You can type in new outlets in the class header and read the header file in builder. This way, you don't risk losing code because builder overwrites the files, and you avoid the hassle with merging the two files. Typing (or copy/paste) is also faster than all that clicking in interface builder.
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000

Share This Page