In doing an NSMetadataQuery, I'm getting results back and I'm getting the file paths but NSMetadataItemFSCreationDateKey is always null. For example:
for (NSMetadataItem * result in sortedResults) {
NSLog(@"Going through results");
NSDate *theDate = [result valueForAttribute:NSMetadataItemFSCreationDateKey];
NSURL * fileURL = [result valueForAttribute:NSMetadataItemURLKey];
}
If I breakpoint the above code, fileURL is set properly but theDate is always nil.
I'm testing this on iOS 6.