I have one to one relationship set up between the two below entities.
SCEntityDefinition *testDef = [SCEntityDefinition definitionWithEntityName:@“testEntity" managedObjectContext:localContext propertyNamesString:@"Identifiers:(testNo,GPS:(coordinates)"];
//end new code
SCEntityDefinition *gpsEntity = [SCEntityDefinition definitionWithEntityName:@"GPSEntity"
managedObjectContext:localContext
propertyNamesString:@"GPS Details:(latitude)"];
what I want to do is have a SCPropertyTypeTextField type in lieu of SCPropertyTypeObjectSelection type with the value of latitude for the GPS coordinates in the testDef.
So instead of this:
SCPropertyDefinition *coordinatePropertyDef = [testDef propertyDefinitionWithName:@"coordinates"];
coordinatePropertyDef.type = SCPropertyTypeObjectSelection;
coordinatePropertyDef.title = NSLocalizedString(@"Coordinates",nil);
I want:
SCPropertyDefinition *coordinatePropertyDef = [testDef propertyDefinitionWithName:@"coordinates"];
coordinatePropertyDef.type = SCPropertyTypeTextField;
coordinatePropertyDef.title = NSLocalizedString(@"Coordinates",nil);
But when I use the above, the cell is not created.
However, when I used SCPropertyTypeArrayOfObjects the cell is created but with a “0” in the cell. Then it appears I have to create the array etc. Something similar to the SCPropertyTypeObjectSelection.
Have looked at key binding, object binding etc, but do not want to create custom cell just for this.
Per chance is this possible?