Monday, January 21, 2013

NSMetadataQuery, NSSortDescriptor & iCloud

It looks like one cannot use NSSortDescriptor on NSMetadataQuery when querying for files from iCloud on iOS. Wanted to sort on the modified date and tried using the sort descriptor but the descriptor does not seem to affect the results. Cannot find any documentation on whether it is supposed to work or not. Finally, I had to manually sort the resultant array using [NSArray sortXyz..], which works fine.


  DB Reading BASE: An Acid Alternative: In partitioned databases, trading some consistency for availability can lead to dramatic improvement...