Originally created by @HuXu77 on GitHub (Oct 10, 2017).
With a fetched results controller we can execute a fetch request and get back sections and rows making it easy for a table view to have section headers and get the results for each section referenced by the row.
I can't figure out how to do that with this, what is the best approach? I was thinking it would be using GroupBy but that is a QueryClause but I don't want to specify attributes I want the actual objects just grouped by a property.
Originally created by @HuXu77 on GitHub (Oct 10, 2017).
With a fetched results controller we can execute a fetch request and get back sections and rows making it easy for a table view to have section headers and get the results for each section referenced by the row.
I can't figure out how to do that with this, what is the best approach? I was thinking it would be using GroupBy but that is a QueryClause but I don't want to specify attributes I want the actual objects just grouped by a property.
@JohnEstropia commented on GitHub (Oct 11, 2017):
Hi, what you are looking for is the `SectionBy` clause. Refer to the description and sample code in the README: https://github.com/JohnEstropia/CoreStore#observe-a-list-of-objects
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 @HuXu77 on GitHub (Oct 10, 2017).
With a fetched results controller we can execute a fetch request and get back sections and rows making it easy for a table view to have section headers and get the results for each section referenced by the row.
I can't figure out how to do that with this, what is the best approach? I was thinking it would be using GroupBy but that is a QueryClause but I don't want to specify attributes I want the actual objects just grouped by a property.
@JohnEstropia commented on GitHub (Oct 11, 2017):
Hi, what you are looking for is the
SectionByclause. Refer to the description and sample code in the README: https://github.com/JohnEstropia/CoreStore#observe-a-list-of-objects@HuXu77 commented on GitHub (Oct 11, 2017):
Perfect!