Searching Files on MacOS X
Searching Files on MacOS X
- Subject: Searching Files on MacOS X
- From: Lorenzo <email@hidden>
- Date: Mon, 18 Aug 2003 19:30:12 +0200
Hi list,
do you know why the Finder performs a search much much faster than my Cocoa
application? For example, if I search for all the filenames ending with
".mov", the Finder finds all the 72 ".mov" files in my boot disk in 8
seconds. My application takes 2 minutes...!
I am using MacOS X 10.2.6 and basically iterate through the following array.
Please note that even if I used NSDirectoryEnumerator the speed is the same.
NSArray *dirContent = [manager directoryContentsAtPath:mainFolder];
What is the fastest way to search for files?
Thank you.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.