I'm trying to create a sectioned NSTableView
using NSArrayController
and cocoa bindings. I'm searching for a similar approach like with NSFetchedResultsController
in iOS, where you can set a section key path. I want to make something similar with NSArrayController
.
I give you an example: I have different tasks. Each task has one of three different priorities, low, medium or high. The tasks also has attributes like title, description, date, etc. I want to section or group the tasks by priority (the section key path here is the priority).
You can I solve this problem with bindings and NSArrayController
? Do I need multiple NSArrayController
or just one?