Interface Mockups

Discussion in 'Mac Programming' started by prostuff1, Feb 20, 2009.

  1. macrumors 65816

    prostuff1

    Joined:
    Jul 29, 2005
    Location:
    Don't step into the kawoosh...
    #1
    I am doing some work for one of my college classes and I have run into a little snag. I mocked up all of my windows in Interface Builder and it was very simple to do… for the most part. There is no coding for this class, it is purely mockups.

    I have quite a few NSTableViews in the mockup. I was wondering, what is the easiest way to get information into the table view. I assumed when i started the mockup that i would be able to do this from IB, similar to how you can for NSComboBox, and NSPopUpButton.
     
  2. macrumors 6502a

    Joined:
    Sep 7, 2005
    #2
    I'd say that the easiest way is to add it in an image editing application.

    Otherwise, use an NSDictionary for the records, put them in an NSMutableArray, and hook it all up with an NSArrayController in Interface Builder.
     
  3. thread starter macrumors 65816

    prostuff1

    Joined:
    Jul 29, 2005
    Location:
    Don't step into the kawoosh...
    #3
    The image editing stuff was what i was figuring on. I was trying to stay away from it if at all possible but i guess it will be Photoshop to the rescue.

    It kinda surprises me that you can't type stuff in the text cells of the table view.I can add stuff to a lot of other thing by simply using interface builder but i cannot add anything to a table view.
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Tables don't hold the data, they only reference it from the controlling object, so you'd need to write some code (very little) in order to display test data.
     
  5. thread starter macrumors 65816

    prostuff1

    Joined:
    Jul 29, 2005
    Location:
    Don't step into the kawoosh...
    #5
    Don't by chance have a quick example do you? I would be eternally grateful!

    Thanks
     

Share This Page