title: using NSSet relationship to populate cellForRow
body: <p>I've looked through many posts and still not sure how to resolve this.  Hope someone can help.</p>
  
  <p>It works until hitting the last data source method, cellForRow.
  At that point I can get the correct NSSet for each section, but unordered.  How does intropection into the relationship properties work for the rows?  </p>
  
  <p>using a string literal in the cellForRow I do get the correct number of rows in each section, but obviously no connection to the managed objects that would be there.</p>
  
  <p>How can I populate the rows from the NSSet relationship?  All insight appreciated</p>
  
  <p>Category&lt;&lt;--->>Person<br>
  cName ----------  pName</p>
  
  <p>relationships<br>
  people  ----------  categories</p>
  
  <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  return [[self.fetchedResultsController fetchedObjects] count];
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section     {
  Category* cat = [[self.fetchedResultsController fetchedObjects] objectAtIndex:section];
  return [[cat people] count];
  }
  
  - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
  Category* cat = [[self.fetchedResultsController fetchedObjects] objectAtIndex:section];
  NSNumber *rowCount = [NSNumber numberWithUnsignedInteger:[[cat people] count]]; 
  return cat.cName;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {    
  NSManagedObject *mo = [[fetchedResultsController fetchedObjects] objectAtIndex:index.row]];
  
  // returns the correct set but unordered, possibly work with this to populate the rows?
  //NSSet *theSet = [[NSSet alloc] initWithSet: [mo valueForKeyPath:@"people.pName"]];
  
  // doesn't work
  // cell.textLabel.text = [NSString stringWithFormat:@"%@",[mo valueForKeyPath:@"people.pName"]];
  
  cell.textLabel.text = @"something";
  return cell;
  }
  </code></pre>