Skips -primitiveType and -setPrimitiveType: but still generates -primitiveTypeValue and -setPrimitiveTypeValue:
dmdeller opened this issue · 5 comments
I came across issue #74 when my app was automatically rejected, so I installed the latest HEAD to get the fix with this command:
brew install --HEAD mogenerator
After, mogenerator no longer generates the problematic -primitiveType
and -setPrimitiveType:
methods, and outputs warnings to that effect, good. But, it still generates the following two methods:
- (int16_t)primitiveTypeValue {
NSNumber *result = [self primitiveType];
return [result shortValue];
}
- (void)setPrimitiveTypeValue:(int16_t)value_ {
[self setPrimitiveType:@(value_)];
}
Since these refer to the now non-existent methods, it fails to compile.
I was reading at the comments on cd9809d but I couldn't quite figure it out—do I need to do something with templates?
I'm updating our app and just re-generated our model classes using 1.28. I am running into this issue where the code doesn't compile because it references the non-existent methods primitiveType and setPrimitiveType. What is the best workaround for this issue?
Nice find. Sorry about that, looking into it now.
Any possibility for this fix to be released? Would be nice to be able to get a working version via homebrew :)
@nickynick To get this fix, install with brew install --HEAD mogenerator