I am a little confused about the typing in my app, let me explain:
I have a persistent custom model class containing several boolean attributes. At least it says BOOL in the entity builder, when I model my object there. When I let XCode autocreate the class for me, I can see in the header file that XCode has made NSNumber objects of my boolean attributes.
What then, is the correct syntax the for updating the persistent object based on user UISwitch toggling?
The following does NOT work:
[myPersistentValue setValue: _OnOffSwitch1.on forKey:@"myBooleanPersistentAttribute1"];