I have a Core Data object called Post . One of its attributes is called updated , and it is a date. The saved XML is as follows:
<attribute name="updated" type="date">266164481.00000000000000000000</attribute>
From this, I came to the conclusion that the data is stored correctly. When I read the data back, the return value will be NSCFNumber , not NSDate .
However, when I changed the name from updated to pubDate , it worked correctly. updated not declared in the headers for NSManagedObject or NSObject , so I assume this should be a private method.
Has anyone else experienced this? Should I report this to Apple?
I realized this after several hours of dizziness / decay of anger.
source share