I am having trouble doing the following:
I have a table with several columns and I’m trying to populate a combo box in the table view from an external data source. I’ve had not problems populating the table with a data source, except the combo box shows a strait list instead of a drop down menu list.
I’ve tried the combo box with and without a data source and I’ve tried manipulating it with call methods removeAllItems and addItemsWithTitles: without luck.
I have also tried the call methods setDataSource: with numberOfRowsInTableView: and tableView:objectValueForTableColumn:row: with a reloadData, but that hasn’t worked.
I’m not that familiar with call methods or Objective-C, so I’ve had a bit of a learning curve trying to put them together. Or should I say, I have lots of bumps and band aids on my head and my desk hates me. :mad: I’ve looked into several books, I’ve searched this forum and apples mailing list, cocoa dev central and a slew of other sites. I learned a lot, but I didn’t solve my problem, so here I am.
I essentially have a list of records with some records containing a list. This would be and example of one list:
{name:“gumby”, friend:“pokey”, comboBoxList:{“yadda”, “ying”, “yang”}}
and I have a list of lists like this.
I know you can’t use a data source with combo boxes in table view, so I was hoping someone may know how I can put together some call methods to achieve my goal of loading these lists of records which also contain lists. I’ve seen some cocoa or objetive-c examples, but most are over my head. I suppose I could learn more and create my own class, but I’m hoping I haven’t reached that point yet. Any help will be greatly appreciated.