Re: directoryContentsAtPath freezing computer
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.