Closed mr-fixit closed 8 years ago
Looks good to me. I don't think this will work for CoreData BOOL's that are exposed as NSNumbers, but that's a scenario that we won't be running into as much (primitive properties + swift). .
@KingOfBrian it definitely doesn't work for NSNumbers! :¬(
Hey @jvisenti / @ZevEisenberg -- are you two good with this merging?
When importing to a boolean field, convert incoming strings and numbers to appropriate bool representations.
Incoming strings are converted via
-[NSString boolValue]
, which currently is documented as:Incoming numbers are converted with
-[NSNumber boolValue]
, which currently is documented as: