On Mar 17, 2010, at 9:28 AM, Don Quixote de la Mancha wrote:
I don't think that the OP wanted to iterate through the entire
directory though...
Maybe so, but I don't think there would be any real disadvantage to
doing so.
Performance.
I'm pretty sure that just about any API that can retrieve a
filename from a directory will iterate through the whole directory
anyway.
No; retrieving a file by name is just a B+tree lookup in HFS. Walking
through the directory is a lot more expensive.
—Jens
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com