title: How to display data in a nscombobox in cocoa?
body: <p>I have an <code>NSComboBox</code> in my mainmenunib file.
  I have created an outlet of combobox "<em>cb</em>" and made a connection of it with my delegate
  I also connected delegate and datasource with my delegate.</p>
  
  <pre><code>-(void)applicationDidFinishLaunching:(NSNotification *)aNotification
  {    arr=[NSMutableArray arrayWithObjects:@"a",@"b",@"c",@"d",@"e",@"f", nil];
  [cb reloadData];
  }
  
  -(NSInteger)numberOfItemsInComboBox:(NSComboBox *)aComboBox{
  return arr.count;
  }
  
  -(id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(NSInteger)loc{
  return [arr objectAtIndex:loc];
  }
  </code></pre>
  
  <p>But when I run the application data is not coming in combobox.
  Please help me out as i am new to cocoa programming.
  Thanks in advance.</p>