| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Sep 1, 2005, at 11:16 PM, Marco Ugolini wrote: In a message dated Thu, 01 Sep 2005 19:54:03, Roger Breton wrote: So far there has been a lot of groping around in the dark for the reasons behind the file-name limitation. Nathan Duran's post was almost certainly correct when he said that CMIterateColorSyncFolder() and, in particular, the FSSpec (a programming construct) might be the culprit. With that, I'd like to clear up a couple of points: 1. HFS+ allows for 255 character file names. 2. The Carbon/Cocoa dichotomy means absolutely nothing as far as support for long file names. The 31 character limit is inherited from old, pre OS8, days when the Finder would refuse to show more than 31 characters of a file name. Hence a lot of people just hard-coded the 31 character limit into their application code. This is wrong and should have been changed years ago. 3. Apple, ColorSync, Carbon, etc. are not to blame for GretagMacbeth's failure to provide long name support. It is only laziness on GretagMacbeth's part. 4. There are four ways for a programmer to specify a file. They are, i. File path or URL. (i.e. /Library/ColorSync/etc/etc/etc, or :Macintosh HD:Library:ColorSync:etc:etc:, or file:///Library/ColorSync/etc/etc/etc) ii. FSSpec which is basically: a number to specify the volume, a number to specify the parent directory, and a 63 character name. However, the 63 character name in the FSSpec is not the actual name if the name is longer than 31 characters. However, you can find the full 255 character name from an FSSpec, so this should not cause any problems. iii. FSRef which has undocumented internals, but which you can pass into lots of different functions and get all the information you could ever want about the file. iv. Aliases which are much like the programmer's version of the alias files you can make in the Finder. All of these ways of identifying a file are roughly equivalent and there is no excuse for not providing long name support when using any of them. Given the horrendous hack of an interface that ProfileMaker has, I am not surprised that their programmers were too lazy to implement long name support. Nonetheless, for what it costs, there is no excuse for not supporting up to 255 character names. Brendan Younger |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/colorsync-users/email@hidden This email sent to email@hidden
| References: | |
| >Re: ColorSync Profile name length - Take 2 (From: Marco Ugolini <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.