Re: Core Data and NSNumber values

2008-11-07 Thread Sean McBride
On 11/6/08 11:48 PM, Quincey Morris said: >floating point representation issues for you for free.) So now you >have 2 issues: > >1. What if I want scalar accessors? > >You write your own. Or you use mogenerator, which creates them for you: -- __

Re: Core Data and NSNumber values

2008-11-06 Thread Quincey Morris
On Nov 6, 2008, at 21:23, HAMILTON, Steven wrote: I think I'm missing something with Core Data. Value attributes always appear to be stored as an NSNumber with the exception of Decimal types which are stored as NSDecimalNumber. If I choose an attribute to be INT64 then this type doesn't see

Core Data and NSNumber values

2008-11-06 Thread HAMILTON, Steven
Hi folks, I think I'm missing something with Core Data. Value attributes always appear to be stored as an NSNumber with the exception of Decimal types which are stored as NSDecimalNumber. If I choose an attribute to be INT64 then this type doesn't seem to be enforced. I can store any valid NSNum