Originally created by @jshl8612 on GitHub (Apr 16, 2019).
Would you like to tell me the right way to make a FetchedResultsController?
let fecthController = dataStack.createFetchedResultsController(From<Food>(), SectionBy<Food>("name"), OrderBy<Food>(.ascending("foodID")))
With above code, fetchedObjects is always nil.
Originally created by @jshl8612 on GitHub (Apr 16, 2019).
Would you like to tell me the right way to make a FetchedResultsController?
`let fecthController = dataStack.createFetchedResultsController(From<Food>(), SectionBy<Food>("name"), OrderBy<Food>(.ascending("foodID")))`
With above code, fetchedObjects is always nil.
adam
added the question label 2025-12-29 18:25:07 +01:00
Is there any reason you prefer NSFetchedResultsController instead of ListMonitor?
As for your question, there's nothing that looks wrong in your code so there must be some other problem. Are you seeing any error logs in the console?
@JohnEstropia commented on GitHub (Apr 16, 2019):
Is there any reason you prefer `NSFetchedResultsController` instead of `ListMonitor`?
As for your question, there's nothing that looks wrong in your code so there must be some other problem. Are you seeing any error logs in the console?
Is there any reason you prefer NSFetchedResultsController instead of ListMonitor?
As for your question, there's nothing that looks wrong in your code so there must be some other problem. Are you seeing any error logs in the console?
Because the ListMonitor<Food> couldn't set to ListMonitor<SuperClassOfFood>.
I have a BaseViewController contains NSFetchedResultsController to deal with most of the same job, and overriding the get function in subclass.
There was no error logs in console.
@jshl8612 commented on GitHub (Apr 17, 2019):
> Is there any reason you prefer `NSFetchedResultsController` instead of `ListMonitor`?
>
> As for your question, there's nothing that looks wrong in your code so there must be some other problem. Are you seeing any error logs in the console?
Because the `ListMonitor<Food>` couldn't set to `ListMonitor<SuperClassOfFood>`.
I have a `BaseViewController` contains `NSFetchedResultsController` to deal with most of the same job, and overriding the get function in subclass.
There was no error logs in console.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jshl8612 on GitHub (Apr 16, 2019).
Would you like to tell me the right way to make a FetchedResultsController?
let fecthController = dataStack.createFetchedResultsController(From<Food>(), SectionBy<Food>("name"), OrderBy<Food>(.ascending("foodID")))With above code, fetchedObjects is always nil.
@JohnEstropia commented on GitHub (Apr 16, 2019):
Is there any reason you prefer
NSFetchedResultsControllerinstead ofListMonitor?As for your question, there's nothing that looks wrong in your code so there must be some other problem. Are you seeing any error logs in the console?
@jshl8612 commented on GitHub (Apr 17, 2019):
Because the
ListMonitor<Food>couldn't set toListMonitor<SuperClassOfFood>.I have a
BaseViewControllercontainsNSFetchedResultsControllerto deal with most of the same job, and overriding the get function in subclass.There was no error logs in console.