NSDirectoryEnumerator memory problem
NSDirectoryEnumerator memory problem
- Subject: NSDirectoryEnumerator memory problem
- From: TACKEL <email@hidden>
- Date: Tue, 11 Feb 2003 12:19:49 +0100
Hi all,
I have a little application that searches in the whole HD for some files but it gets more and more memory, so when it finishes the search my equip is almost frozen.
The problem is the NSDirectoryEnumerator but I don't know how to manage this issue.
Any idea?
NSFileManager *fmanager =[NSFileManager defaultManager];
NSDirectoryEnumerator *direnum = [fmanager enumeratorAtPath:@"/"];
NSString *entry;
while (entry = [direnum nextObject])
{
some file checks
}
Thanks,
Tackel
_______________________________________________
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.