Re: NSMetadataQuery question

2008-10-20 Thread Timothy Larkin
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 t

NSMetadataQuery question

2008-10-19 Thread Timothy Reaves
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 c