Re: What are the official limits of Cocoa when it comes to the length of path names?
Re: What are the official limits of Cocoa when it comes to the length of path names?
- Subject: Re: What are the official limits of Cocoa when it comes to the length of path names?
- From: Half Activist <email@hidden>
- Date: Fri, 13 Jul 2007 12:17:05 +0200
Hi Stephane,
I don't think this is a bug in the system,
I suppose when you drop a file from the Finder in a text field, it
calls Unix/BSD system calls to resolve the path of the file,
these calls may fail with paths longer than PATH_MAX.
Regards.
On Jul 13, 2007, at 11:48 AM, Stéphane Sudre wrote:
There seems to be some limits in Cocoa when it comes to path names.
Example:
A simple window including a NSTextField.
You can drag and drop almost every file from the Finder to the Text
Field and it will display the path name of the file (if it's not a
Text Clipboard file of course).
Yet, if this very same file is in a hierarchy that makes its
absolute path name bigger than 1024 (PATH_MAX in <sys/limits.h>),
you can not drop it anymore.
Is this an engineering specification or a bug (Mac OS X 10.4.10)?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden