Re: Efficiently iterating files on the iPhone
Re: Efficiently iterating files on the iPhone
- Subject: Re: Efficiently iterating files on the iPhone
- From: Dave DeLong <email@hidden>
- Date: Wed, 14 Apr 2010 14:45:05 -0600
I don't know how many files I'll be iterating, since I'm working on a library that will (hopefully) end up included in many applications. My reason for wanting to optimize this as much as possible is so that it's as least invasive as possible to other developers who use this.
But, judging from the responses, it sounds like NSFileManager is the way to go.
Thanks!
Dave
On Apr 14, 2010, at 2:42 PM, Chris Parker wrote:
> You should be fine in just using NSFileManager and asking for fileAttributes using an NSDirectoryEnumerator. And as that gets faster, you'll get faster. If you're that worried about it, though, it implies you have a ton of files you're iterating over. Is that really the case?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden