[NSString stringWithFormat:@"CAST(%f, \"NSDate\")", [date timeIntervalSinceReferenceDate]];
produces a string which can be used to build a predicate. -- Timothy Larkin Abstract Tools Caroline, NY On Oct 19, 2008, at 9:39 PM, Timothy Reaves wrote:
I'm trying to write a query where the meta data in question is an NSDate stored as a binary plist. Everything I am doing is failing. I have tried '(myKey > %@, date] where date is an instance of NSDate, where it is a NSTimeInterval, and a string. Nothing returns data (or even calls my callback).
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]