Re: Archiving NSBlockPredicate and NSPredicate date functions

2010-05-11 Thread Dave DeLong
Since no one had any suggestions... I ended up doing some interesting stuff with this. When constructing my predicate, I turn the offset into a substitution variable. So in the example I gave, "NOW() - 1 day" would become the variable "$NOW86400". Then any time I need to evaluate that predic

Archiving NSBlockPredicate and NSPredicate date functions

2010-04-28 Thread Dave DeLong
Hi everyone, I've figured out a way to do an "date in the last X days" predicate, but I'm having to do it as a block predicate. This works fine, but I've run up against another situation: NSBlockPredicates don't support archiving. This is a problem, since I need to store this predicate in a