discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSTemporaryDirectory() && Windows


From: Richard Frith-Macdonald
Subject: Re: NSTemporaryDirectory() && Windows
Date: Wed, 11 May 2005 11:43:32 +0100

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

>> 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 :-)

I was sloppy in my cut and paste, and missed the trailing '.' ... but what I 
meant was ... if you want to use a specific directory path (whatever it is .... 
Sheldon suggests you meant "C:\Dokumente und Einstellungen\Administrator\Local 
Settings\Temp"), you should be using that path explicitly in your program.

> 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.






reply via email to

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