Hey Martin-
This can be done by simply fetching all the store entities using an NSFetchRequest, creating an NSArray of the objects' names, and passing it to an SCSelectionSection. Here is some sample code:
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
[fetchRequest setEntity:myEntity];
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc]
initWithKey:@"nameAttribute"
ascending:YES];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
[fetchRequest setSortDescriptors:sortDescriptors];
NSArray *objectsArray = [NSMutableArray arrayWithArray:[self.managedObjectContext
executeFetchRequest:fetchRequest error:NULL]];
[sortDescriptor release];
[sortDescriptors release];
[fetchRequest release];
NSArray *namesArray = [NSArray arrayWithCapacity:[objectsArray count]];
for(NSManagedObject *object in objectsArray)
{
[namesArray addObject:[object valueForKey:@"nameAttribute"]];
}
// Create the selection section normally here. You can choose to bind the selection index to an object property, a key, or not bind it at all. Here I will be binding it to a key accessable from tableModel.modelKeyValues dictionary.
SCSelectionSection *selSection = [SCSelectionSection sectionWithHeaderTitle:nil withBoundKey:@"selectedObject" withSelectedIndexValue:nil withItems:namesArray];
...