I have an entry on a core data entity that represents a NSTimeInterval.
First question: How do I represent this entity on the dababase model? Double? Float?
Then, when I store it, is it fine to create an object like
[NSNumber numberWithFloat:myTimeInterval];
or
[NSNumber numberWithDouble:myTimeInterval];
or should I convert everything to string and store it like that?
thanks
NSTimeInterval is a double. Store it with the latter line. There's no need to store it as an NSString.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With