• 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: FSRefMakePath: error -35
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Fwd: FSRefMakePath: error -35
  • Next by Date: Re: alloc, init and autorelease/release
  • Previous by thread: Re: FSRefMakePath: error -35
  • Next by thread: Re: FSRefMakePath: error -35
  • Index(es):
    • Date
    • Thread