I'm only getting this error in my app since upgrading to ios4.
newsDetailController.news = (News *)[self.fetchedResultsController objectAtIndexPath:indexPath];
NSLog(@"\n Indexpath of details news before pass = %@", [self.fetchedResultsController indexPathForObject:newsDetailController.news]);
Basically, this:
[self.fetchedResultsController indexPathForObject:newsDetailController.news])
returns NULL.
Why would this be?
newsDetailController.news
isn't NULL.
Thanks
Dan
Edit:
To highlight this:
NSLog(@"\n Indexpath of detailssss news before pass = %@", [self.fetchedResultsController indexPathForObject:[self.fetchedResultsController objectAtIndexPath:indexPath]]);
... returns NULL, even though:
[self.fetchedResultsController objectAtIndexPath:indexPath]
...returns an object.