O'Reilly logo
  • Xavier LASNE thinks this is interesting:

self.query.predicate = [NSPredicate(format: "%K LIKE %@", NSMetadataItemFSNameKey, filePattern)]

From

Cover of More iPhone Development with Swift: Exploring the iOS SDK

Note

self.query.predicate = NSPredicate(format: "%K LIKE %@", NSMetadataItemFSNameKey, filePattern)