I have a Core Data entity called Post
. One of it's attributes is called updated
and it is a date. The stored XML looks like this:
<attribute name="updated" type="date">266164481.00000000000000000000</attribute>
From this I concluded that the data is being stored correctly. When I read the data back the returned value is a NSCFNumber
, not an NSDate
.
However, when I changed the name from updated
to pubDate
it worked properly. updated
isn't declared in the headers for NSManagedObject
or NSObject
, so I guess it must be a private method.
Has anyone else experienced this? Should I report it to Apple?
I figured this out after a few hours of head scratching/foul mouth anger.