• 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: Stéphane Sudre <email@hidden>
  • Date: Wed, 16 Jan 2002 16:22:48 +0100

On Wednesday, January 16, 2002, at 04:17 PM, Lance Bland wrote:


On Wednesday, January 16, 2002, at 09:57 AM, Ondra Cada wrote:

I've just tried that in my NeXTStep
3.3, and succeeded to kill Edit the very same way -- by trying to save a file
into path longer than 1024 characters).

Do please file a bugreport.

Look at the file /usr/include/sys/syslimits.h

and this line:

#define PATH_MAX 1024 /* max bytes in pathname */

and you will understand.

This limit is known by everyone I think. The issue is more how are we supposed to deal with it when it's possible to have pathname bigger than PATH_MAX and calling [NSFileManager defaultManager] fileExistAtPath (or another one) would not be working.

One solution could be to use - changeCurrentDirectoryPath: to avoid the 1024 limits and use relative path names everywhere. But this does not look like a realistic solution.


  • Follow-Ups:
    • Re: How to deal with long pathnames in Cocoa ?
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: How to deal with long pathnames in Cocoa ? (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: How to deal with long pathnames in Cocoa ?
  • Next by Date: Re: resizing a NSView
  • 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