• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDirectoryEnumerator memory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Scripting & Services
      • From: Michael Grant <email@hidden>
    • Re: NSDirectoryEnumerator memory problem
      • From: David Remahl <email@hidden>
    • Re: NSDirectoryEnumerator memory problem
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Communication with StartupItem
  • Next by Date: Re: disk image
  • Previous by thread: NSCopyBits similar in Core Graphics ?
  • Next by thread: Re: NSDirectoryEnumerator memory problem
  • Index(es):
    • Date
    • Thread