1

I am performing a query (NSMetadataQuery) on the local data as spotlight performs and sorting the results as per modification date of the files, everything is working fine till this point. BUT i am not able to understand how can we group the results, for example i want applications in one group, documents in other and images in images group (similar to what spotlight does), can anyone suggest how to do it.

Suhaiyl
  • 1,071
  • 9
  • 17

1 Answers1

0

Using kMDItemKind for your sort (or sub-sort) descriptor should work.

Dad
  • 6,388
  • 2
  • 28
  • 34