Getting the Temporary Folder as the default directory !
I will investigate later for what code I use to save the file (the code for the given FolderItem).
I just get it once more ON OS X 10.10.5 / application compiled with 2015r1.
And it was not the first time: there already was an older file (saved two hours ago).
MacBook Pro 15" Retina, 2014-12 - 8GB RAM - 256MB SSD
External Hard Disk connected (and it was the original load location of the currently modified data / where I was meant to save)
VLC 2.15 was open (I was hearing music while using the computer).
TextEdit was open and used
Safari (last one, updated yesterday ?) was open and used
Preview was open.
My project running as a standalone application (I have to use it to better test it).
QuickView (used to display jpg, png, txt, html, mp3 files)
The code used to save the file (what the code was doing at this time)
[after loading Xojo and the project]
OK: I used SaveAsDialog.
I also set the InitialDirectory, so in a way, it can be my fault (at use time, not code time), but how ?
If mFileIO.gImportFI = Nil Then
Export_CSV_Dlg.InitialDirectory = GetFolderItem("")
Export_CSV_Dlg.InitialDirectory = mFileIO.gImportFI
The code is meant to open the SaveAsDialog into the folder from where I open the file. **
Note that I just checked the Import method to be sure of what I’ve done there and this is exactly what I wrote in the line above.
I hope this will help to find what happens.
PS: 4 hours of freedom, doing non intensive brain work (collecting data, copy / paste them in a ListBox) allows me to recall whats in the note below.
- Nota: I already get strange things, certainly because of the OS, years ago. The default directory was one used at some time in the past (but I do not know when). The wrong default directory was not always the same (I think / unsure).
That project was created 14 years ago with REALbasic and is not related to the current one (except that it was created by me; but I do not own these hard disks at the time).
** I certainly already do that in the old application. (read * above)