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 12:12:40 +0200


On Mittwoch, Mai 11, 2005, at 11:50 Europe/Berlin, Richard Frith-Macdonald wrote:

On 2005-05-11 10:13:55 +0100 Marc Brünink <mbruen@smartsoft.de> wrote:

Isn't it a bit outdated to return a MS-DOS 5.x string?

Backwards compatibility with MS-DOS is a Windows feature.

Nevertheless GNUstep should handle this. Either by changing
NSTemporaryDirectory() or by hacking openStepPathFromLocal and/or
stringByStandardizingPath.
I guess the task of GNUstep is to encapsulate all this awful operating
system functions. So GNUstep have be to hacked.

I don't understand your reasoning here.

The NSTemporaryDirectory() function is supposed to supply the name of a temporary directory that your program can use to store its own private temporary files in. You are not supposed to make any assumption about where this temporary directory is. This path is not (and should not be) user-visible in any way, and so as long as it works there is, as far as I can see, no reason why it should look like anything in particular (certainly code should not rely on it being any particular directory).

What exactly is the logic of wanting it to be 'c:\Dokumente und Einstellungen\Administrator\' ? If you want to store files in 'c:\Dokumente und Einstellungen\Administrator\.', I would have thought you should be using that as the file name rather than using NSTemporaryDirectory()

uh oh. You misunderstood me. Actually I was just too lazy to type the whole path. So I just typed
c:\Dokumente und Einstellungen\Administrator\..
and I thought I was clear that this isn't the whole path (take a look at the points at the end of the path :-)

However I simply want:
1. A NSTemporaryDirectory() funtions which doesn't return 8.3 paths, but real cool nice and fancy long path names.
or if you think GNUstep should be 8.3 compatible
2. A method of NSString which converts 8.3 pathnames to long ones.

regards
Marc




reply via email to

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