BugsBiteBugs / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

Passing Incorrect Value in NSDate-SQLitePersistence [fix included] #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Read a NSDate value from the persistence object.

What do you see instead?
App crashes with error "+[NSDate length]: unrecognized selector sent to class"

How to Fix
==========

In NSDate-SQLitePersistence.m, on line 28, change:
return [dateFormatter dateFromString:self];

to : 
return [dateFormatter dateFromString:columnData];

Original issue reported on code.google.com by davidjc...@gmail.com on 7 Sep 2008 at 8:36

GoogleCodeExporter commented 9 years ago
Ran into this myself, had the same fix, attached to
http://code.google.com/p/sqlitepersistentobjects/issues/detail?id=1

Original comment by vicke...@gmail.com on 8 Oct 2008 at 3:51

GoogleCodeExporter commented 9 years ago
This fix was applied to the project today, thanks!

Original comment by jeff.lam...@gmail.com on 21 Oct 2008 at 4:24