Re: EXC_BAD_ACCESS in an strange place
Re: EXC_BAD_ACCESS in an strange place
- Subject: Re: EXC_BAD_ACCESS in an strange place
- From: Clark Mueller <email@hidden>
- Date: Fri, 23 Aug 2002 12:17:54 -0600
:-) Dumb thing for me to whine about. What I meant was that if
NSDirectoryEnumerator directly returned the full path, I wouldn't have
gone about doing it myself and run into the memory management issue. I
don't think this would be an unreasonable thing to add to the framework
directly, anyway, if someone from Apple is listening.
Thanks for your help, everyone,
Clark
On Friday, August 23, 2002, at 11:43 AM, Ondra Cada wrote:
On Friday, August 23, 2002, at 07:13 , Clark Mueller wrote:
None of this would be a problem if I could find a way to make an
NSDirectoryEnumerator return full path names, and not file names
representing the contents. Any ideas there, anyone?
What's the problem?
id en=[filemanager enumeratorAtPath:path];
while (s=[en nextObject]) {
s=[path stringByAppendingPathComponent:s];
...
}
You might quite easily prepare an NSFileManager/NSDirectoryEnumerator
extension which would encapsulate this, but I think it is not worth
the effort, if this is the only special service you want.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
Clark Mueller
email@hidden
---
http://www.finikin.com/
---
Computer programmers don't byte, they nibble a bit.
_______________________________________________
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.