Sections In Results #177

Closed
opened 2025-12-29 15:26:16 +01:00 by adam · 2 comments
Owner

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.
adam closed this issue 2025-12-29 15:26:16 +01:00
Author
Owner

@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

@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
Author
Owner

@HuXu77 commented on GitHub (Oct 11, 2017):

Perfect!

@HuXu77 commented on GitHub (Oct 11, 2017): Perfect!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#177