Re: FSRefMakePath: error -35
Re: FSRefMakePath: error -35
- Subject: Re: FSRefMakePath: error -35
- From: Dair Grant <email@hidden>
- Date: Sun, 23 Oct 2005 09:48:15 +0100
Lawrence Sanbourne wrote:
>> It *will* fail on some people's computers. Try to use something much
>> larger (if possible). I usually use PATH_MAX*6, although that still
>> isn't the best way to do it.
...
>
>Hmm, this sounds ugly. I think for simplicity I'll use PATH_MAX*6.
Given that you're calling yourself recursively, is there some reason you
don't just take an FSRef as your parameter?
That would cut out the FSRef->path and path->FSRef overhead, and avoid
the problem of failing if (when) your path exceeds PATH_MAX (*6 is just
deferring the point at which it happens - if you stick to FSRefs, you'll
be able to recurse to arbitrary depths).
-dair
___________________________________________________
mailto:email@hidden http://www.zonic.co.uk/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden