• 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
Re: directoryContentsAtPath freezing computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: directoryContentsAtPath freezing computer


  • Subject: Re: directoryContentsAtPath freezing computer
  • From: Lorenzo <email@hidden>
  • Date: Mon, 08 Dec 2003 11:14:27 +0100

Hi,
I don't think
directoryContentsAtPath
freezes the computer.
I use it everyday on any directory, even the roots of local and remote
volumes, on mac, unix and windows volumes, and it works flawlessly.
Instead I suppose something wrong occurs when you load the RTF files with
initWithPath


you could try to do something else with the pathnames in the loop.
e.g.
NSString *s;
s = [p stringByAppendingPathComponent:[files objectAtIndex:i]];
so if nothing wrong occurred, you could better suppose that the responsible
of the freeze is initWithPath. So investigate on that direction.


Last, in your loop, dont' forget to release the string 'a' at the end of
each loop, e.g.
if (a){
count++;
[a release];
}


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.

  • Prev by Date: RE : Xcode bug
  • Next by Date: Re: .webloc files and Safari (newbie)
  • Previous by thread: Re: directoryContentsAtPath freezing computer
  • Next by thread: OT: Seed installation strategy
  • Index(es):
    • Date
    • Thread