accountRelDef.type = SCPropertyTypeSelection; accountRelDef.attributes = [SCSelectionAttributes attributesWithItems:accountDef allowMultipleSelection:NO allowNoSelection:YES];
It crash and I get the following errormessage:
Incompatible pointer types sending ‘SCEntityDefinition *__strong’ to parameter of type ’NSArray *’
I’ve tried instead to use SCPropertyTypeObjectSelection, but it doesnt seems to fit for a lookup from another Core Data table. It put a badge on the cell and count the accounts I’m having (as it does in taskSteps).
Skjermbilde 2012-10-09 kl. 13.10.17.png 6.72K 4 downloads
This is the code:
accountRelDef.type = SCPropertyTypeArrayOfObjects; accountRelDef.attributes = [SCArrayOfObjectsAttributes attributesWithObjectDefinition:accountDef allowAddingItems:YES allowDeletingItems:YES allowMovingItems:YES];
This actually run, but as said, SCPropertyType doesn’t fit my need.
Thankful for suggestions on how to best represent the model attached with STV 3.0!
Skjermbilde 2012-10-09 kl. 13.10.46.png 42K 7 downloads