0

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.

Smi
  • 13,850
  • 9
  • 56
  • 64
Ajay
  • 1
  • 3
  • 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 Answers1

2

Try Spotlight by the means of NSMetadataQuery

Mike Abdullah
  • 14,933
  • 2
  • 50
  • 75
Pierre Bernard
  • 3,148
  • 2
  • 23
  • 31