Re: Unicode filename and FSPathMakeRef
Re: Unicode filename and FSPathMakeRef
- Subject: Re: Unicode filename and FSPathMakeRef
- From: Rosyna <email@hidden>
- Date: Thu, 3 Jan 2002 22:11:50 -0700
This is pointless as Cocoa fails if the path is over 1024 chars. by
fail, I mean crashes in most instances.
Ack, at 1/3/02, Chris Hanson said:
You shouldn't use FSRefMakePath -- there's no way to tell in advance
how long the path will be, so you can't know how large a buffer to
pass it. If you just randomly pick a size -- 1024 bytes, or 2048,
or 4096, or whatever -- it *will* be wrong for some user's system
(particularly when using multibyte character sets) and you'll have
needlessly built some fragile software.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People