If I give the string xyz
, the program should search all files and folders from the whole harddisk that contain the string xyz
in name. How to write code for this in Cocoa using Xcode and Objective-C in MAC OS? Please help me.
Asked
Active
Viewed 206 times
0
-
possible duplicate of [Getting a list of files in a directory with a glob](http://stackoverflow.com/questions/499673/getting-a-list-of-files-in-a-directory-with-a-glob) – Chris Hanson Dec 28 '10 at 02:22
1 Answers
2
Try Spotlight by the means of NSMetadataQuery

Mike Abdullah
- 14,933
- 2
- 50
- 75

Pierre Bernard
- 3,148
- 2
- 23
- 31