Re: How to deal with long pathnames in Cocoa ?
Re: How to deal with long pathnames in Cocoa ?
- Subject: Re: How to deal with long pathnames in Cocoa ?
- From: Ondra Cada <email@hidden>
- Date: Wed, 16 Jan 2002 20:25:33 +0100
Lance,
>
>>>>> Lance Bland (LB) wrote at Wed, 16 Jan 2002 10:17:45 -0500:
LB> >Do please file a bugreport.
LB>
LB> Look at the file /usr/include/sys/syslimits.h
LB>
LB> and this line:
LB>
LB> #define PATH_MAX 1024 /* max bytes in pathname */
LB>
LB> and you will understand.
Nope. The bug is not in the fact that longer paths are not valid -- that's
quite all right --, but in the fact that if one tries to use them from the
GUI it crashes the current application! That is unacceptable: the code should
raise a decent exception (to be catched, at the very worst, at the main app
event loop level), and NEVER EVER crash!
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc