I'd like to know if I should expect setFetchOffset to work in an NSFetchedResultsController.
Given a UITableView that displays rows like this from an NSFRC:
1
2
3
4
5
I expected that adding this line:
[fetchRequest setFetchOffset:1];
e.g. line 207 here: http://github.com/mandersen/FetchOffsetCase/blob/master/Classes/RootViewController.m
Would result in UITableView rows like:
2
3
4
5
But it doesn't change the values displayed in the table.
setFetchOffset only works on persisted entities.
I figured this out while experiencing similar frustrations with NSFetchRequest setReturnsDistinctResults and found Michael Waterfall's question on that subject:
NSDictionaryResultType expression not taking into account newly inserted objects
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With