discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTemporaryDirectory() && Windows


From: Marc Brünink
Subject: Re: NSTemporaryDirectory() && Windows
Date: Wed, 11 May 2005 13:30:06 +0200

However I simply want:
1. A NSTemporaryDirectory() funtions which doesn't return 8.3 paths, but real
cool nice and fancy long path names.

My question was 'why' ... that is what I don't understand.
Given that the NSTemporaryDirectory() is an internal location used for temporary file storage, and your program must not depend on its value other than as a place to store temporary files, I can see no reason why it should return a path in a particular format. Now, if you are a developer debugging your code and want to see where temporary files are being stored by your program, you might want to look at the path, but I would hope that the exact format of the path is pretty irrelevant to anyone sufficiently technicaly minded to be doing that.

or if you think GNUstep should be 8.3 compatible
2. A method of NSString which converts 8.3 pathnames to long ones.

Again, 'why' ....windows provides one for you, and it would have no use whatsoever outside of the windows environment, so adding it to GNUstep would be useless bloat.

Because sometimes you need to convert 8.3 too long pathnames. Perhaps you want to display them in a nice format or perhaps you want to write a configuration file for a third party program (<- I want to do this). Actually it doesn't matter why some people need this. I just think stringByStandardizingPath should handle this. Currently stringByStandardizingPath thinks ~C/DOKUME~1/ADMINI~1/.... is an invalid path, which is simply wrong!

regards
Marc





reply via email to

[Prev in Thread] Current Thread [Next in Thread]