Hi -
When I try to set up a cell in a UITableViewController that has a NSFetchedResultsController I am getting an error as soon as I try to get to the managedObject. The error is:
2009-12-08 16:21:47.610 Take10[4837:20b] *** NSInvocation: warning: object 0xa08dd140 of class 'List' does not implement methodSignatureForSelector: -- trouble ahead
2009-12-08 16:21:47.610 Take10[4837:20b] *** NSInvocation: warning: object 0xa08dd140 of class 'List' does not implement doesNotRecognizeSelector: -- abort
Here is my code, crash comes when trying to set up the managed object:
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// Get the managedObject
NSManagedObject *managedObject = [fetchedResultsController objectAtIndexPath:indexPath];
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
// Set up the cell...
cell.textLabel.text = [managedObject valueForKey:@"listName"];
return cell;
}
I've looked at the class code for the managedBobject that is retrieved by the fetch, and it looks fine, an automatically generated class from my Core Data model. If I use another entity from the model in the same fetch, all works perfectly.
Ideas??
Thanks