interface builder help

Discussion in 'Mac Programming' started by jamesapp, Nov 13, 2008.

  1. jamesapp macrumors 6502a

    Joined:
    Mar 7, 2008
    #1
    working on a xcode project. In Interface Builder, i have dragged an NSController from the library into my Doc window. My question is can i change the name of NSConroller in my Doc window? I want to rename it from NSController to Cars. I tried double clicking the NSController but my computer won't let me change the name. My computer only beeps. Also my Menu for my app does open when i launch Interface builder. Any help would be appreciated.
     
  2. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #2
    highlight the object by clicking on it, then click once more on the title to change the name.

    this will only change the Interface Builder Identity of your object. if you want to actually subclass your object you gotta do so in the Inspector under the Object Identity tab (Inspector > Object Identity > Class Identity). you can also change the Interface Builder Identity here as well (Inspector > Object Identity > Interface Builder Identity).
     
  3. bananfarfar macrumors newbie

    Joined:
    Apr 2, 2009
    #3
    Add my own graphic to Interface builder

    Hi

    I've just started to use Interface Builder (3.1.2), and would like to add some of my own buttons that I've created in photoshop. Is that possible? Do anyone knows how to do that?

    cheers!
     
  4. MrFusion macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #4
    Why would you want to do that? Mac users expect a lot from their user interfaces and consistency across applications is an important part of that.
    You can of course add your specific icon to an existing button. Just open the inspector window for that.
     
  5. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #5
    drop your button images into your resource files in xcode, then in interface builder you can drag and drop any button into a window and change that buttons image under Button Attributes in the inspector window. note that it's also possible to uncheck "Bordered" if you created a full button image and not just an image for the button.

    there are like 10 buttons to choose from in interface builder. i wouldn't exactly call that consistent. besides, it's better to be creative if you can be.
     
  6. bananfarfar macrumors newbie

    Joined:
    Apr 2, 2009
    #6

    Thanks for all your help!
     
  7. bananfarfar macrumors newbie

    Joined:
    Apr 2, 2009
    #7
    Add a thumbnail list

    Hi I would like to add one of those thumbnail lists that you can find in keynote, to the left. Not sure if it's called thumbnail lists :) but it's basically an small overview of all your pages.
     
  8. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #8
    Start with NSTableView + NSImageCell. For very basic needs you can do this all in IB and then use bindings to provide a thumbnail image of whatever you're trying to represent.
     
  9. bananfarfar macrumors newbie

    Joined:
    Apr 2, 2009
    #9
    Great, cheers!
     

Share This Page