mogenerator
mogenerator copied to clipboard
scalar methods do not respect the signed types that Core Data forces
Question
when settings min value to 0 for an attribute of type "Integer 64", mogenerator generates value accessors with uint64_t primitive types.
Expected Behavior
Core Data internally uses int64_t (remember: "Integer 64") so mogenerator value accessors should respect that and expose int64_t types.
Actual Behavior
mogenerator probably look at the constraints (min value set 0 let it think it's an unsigned value), and decides to expose uint64_t primitive types in value accessors. This is wrong as internally Core Data will use int64_t anyway (you can see that using their new code generation)
Additional Information
iOS 10 / Xcode 8