1- For a thorough discussion on customizing STV cells please check out these two posts:
www.sensiblecocoa.com/forum/general-disc...e-table-cell.html#12
www.sensiblecocoa.com/forum/sensible-tab...-properties.html#185
2- You don't set the default value in the property definition, but rather in the managed object itself. Core Data STV defaults can be set in two main ways:
a. You can set the default value for any attribute from the Core Data model designer, and STV will work with that.
b. If you need to determine the default value at runtime (getting the current date for example), you need to implement the SCTableViewModelDelegate method called tableViewModel:itemCreatedForSectionAtIndex:item:. This method gets called when a managed object is first created, typically when the user taps the add button. Here is some code sample that illustrates how to achieve what you want:
- (void)tableViewModel:(SCTableViewModel *)tableViewModel
itemCreatedForSectionAtIndex:(NSUInteger)index
item:(NSObject *)item
{
// This step is not technically necessary but I have it just for clarity.
NSManagedObject *managedObject = (NSManagedObject *)item;
[managedObject setValue:[NSDate date] forKey:@"inspectionDate"];
}