Iphone - NSTimeInterval store on coredata

I have a record in the main data object that represents NSTimeInterval.

First question: how can I represent this object in a dababase model? To double? Float?

Then, when I store it, is it nice to create an object like

[NSNumber numberWithFloat:myTimeInterval]; or [NSNumber numberWithDouble:myTimeInterval]; 

or do I need to convert everything to a string and save it that way?

thanks

+7
source share
1 answer

NSTimeInterval is double. Save it with the last line. There is no need to store it as an NSString.

+15
source

All Articles