There is only one way I have figured out to have a date as the RHS of a predicate, which I found by looking at an example of a date predicate produced by IB as part of a predicate binding. The date has to be cast to a float. This

[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).


Attachment: 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]

Reply via email to