Interface Builder can't create Toolbars?

Discussion in 'Mac Programming' started by jedirunner, Sep 3, 2007.

  1. jedirunner macrumors member

    Joined:
    Aug 1, 2007
    #1
    Hi,

    I'm new to mac programming and trying to give xcode/IB a try. I have an app mocked up a bit that I'd like to create a prototype for. However, I'm not able to find any Toolbars in Interface Builder, or any splitter panes, for that matter. How do I go about adding toolbars and splitter panes to the window if they're not in the pallette? Is this something I'll have to add manually in the code?

    Thanks,

    Kevin
     
  2. mduser63 macrumors 68040

    mduser63

    Joined:
    Nov 9, 2004
    Location:
    Salt Lake City, UT
    #2
    You can't make toolbars in Interface Builder, you have to do it programmatically. I'm pretty sure Interface Builder in Leopard has support for graphical creation of toolbars, but of course that won't be out until next month. Look up NSToolbar for information on how to make a toolbar programmatically.

    To put something in a split view, select the relevant objects then select Make Subviews Of->Split View from the Layout menu.
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  4. jedirunner thread starter macrumors member

    Joined:
    Aug 1, 2007
    #4
    Thanks!

    Thanks for both of the answers. I'll go give that a try.

    Kevin
     
  5. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #5
    The standard NSSplitView is a bit basic and can be tricky to get to do what you want. I ended up using RBSplitView in BeerAlchemy
     
  6. GeeYouEye macrumors 68000

    GeeYouEye

    Joined:
    Dec 9, 2001
    Location:
    State of Denial
    #6
    As for split views, you create the views you want on each side, and then group them (it's under the Layout menu).

    Toolbars... wait another couple months.
     
  7. Krevnik macrumors 68030

    Krevnik

    Joined:
    Sep 8, 2003
    #7
    Same can be said for split views. :)
     

Share This Page