PDA

View Full Version : Interface Mockups




prostuff1
Feb 20, 2009, 12:01 PM
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.



Sijmen
Feb 20, 2009, 01:38 PM
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.

prostuff1
Feb 20, 2009, 01:44 PM
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.

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.

kainjow
Feb 20, 2009, 02:56 PM
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.

prostuff1
Feb 20, 2009, 07:54 PM
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.

Don't by chance have a quick example do you? I would be eternally grateful!

Thanks