Hi All,

I have a question about efficiency when trying to compare NSURL. The 
requirement is quite simple. I try and iterate through a directory to all 
subdirectories and files. While doing this walk-through, I need to check 
against an array of NSURLs which are restricted files and folders.
This means if I find a match of file I am trying to access in the array then I 
don't do any operations on that file and continue.

Lets say I walkthrough 1000 files and folders, for each file/folder I need to 
compare against this array list. This might be slow or inefficient. Is there a 
faster way to do something like this?

Secondly, I plan to store array of NSURL for restricted files and folders. What 
is the best way to get partial compare?

Eg: Entry in array : /XYZ/abc
This means I should not iterate into the abc folder. So any files /XYZ/abc/1.c 
or /XYZ/abc/def/2.c should all be skipped. Whats the best way to do partial 
NSURL compare? Or is it better I store it as NSString instead of NSURL?

Regards,
Varun
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to