discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSTemporaryDirectory() && Windows


From: Sheldon Gill
Subject: Re: NSTemporaryDirectory() && Windows
Date: Wed, 11 May 2005 18:22:05 +0800
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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

I agree with this. It gives you a path to use. You use it. User friendliness isn't the issue.

[ displayNameForPath] would be the way to provide a user string.

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

I believe he meant

"C:\Dokumente und Einstellungen\Administrator\Local Settings\Temp"

Win2k has per user temporary directories.


Regards,
Sheldon




reply via email to

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