mogenerator icon indicating copy to clipboard operation
mogenerator copied to clipboard

scalar methods do not respect the signed types that Core Data forces

Open altimac opened this issue 8 years ago • 0 comments

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

altimac avatar Feb 20 '17 12:02 altimac