• 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: How to deal with long pathnames in Cocoa ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to deal with long pathnames in Cocoa ? (From: Lance Bland <email@hidden>)

  • Prev by Date: Grabbing keystrokes in background app
  • Next by Date: dealing with different types of strings
  • Previous by thread: Re: How to deal with long pathnames in Cocoa ?
  • Next by thread: Re: How to deal with long pathnames in Cocoa ?
  • Index(es):
    • Date
    • Thread