Skip to content
This repository

change return types (for scalars) to exact size types (ex: int32_t) #2

Closed
seanm opened this Issue November 01, 2009 · 3 comments

2 participants

Sean Jonathan 'Wolf' Rentzsch
Sean

As one can see from Xcode's GUI for editing .xcdatamodel files, Core Data supports signed 16, 32, and 64 bit integers for attributes types. In turn, mogenerator creates accessors that return scalars for these attributes. The types returned are: short, int, and long long. These are correct for the current Mac OS ABI.

However, it would be even more correct to return int16_t, int32_t, and int64_t instead.

We once tried to make this change, but it was tricker than I thought because IIRC it assumed that there are NSNumber methods named Value, like 'shortValue' but there is no int16_tValue method.

Jonathan 'Wolf' Rentzsch
Owner

Yup, that's where I got stuck too. I'm a fan of intXX_t, but decided it wasn't worth the effort (yet).

Sean

Has anything changed in the last 2 years that would make this achievable at this point?

Jonathan 'Wolf' Rentzsch
Owner

I don't think so, sorry.

Jonathan 'Wolf' Rentzsch rentzsch closed this in c82f11a January 06, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.