GetPathPart(ProgramFilename()) problem on Macs
Posted: Mon Nov 04, 2013 10:59 am
Hi,
since I'm not a Mac user I stumpled across an ugly thing on Mac OS X:
On windows and linux I use GetPathPart(ProgramFilename()) to store own data files beside the program.
If I do this on a Mac it works, but ...
The files are stored inside the app folders and not beside them.
So if an other program wants to read such a stored file, it has no chance.
In my opinion ProgramFilename() returns the wrong value on a Mac.
But Ok.
What's the right way todo it right.
I didn't use the home directory, because I want my program 'flat' and don't want to create directories on my
own from what the users don't know something about.
(I hope you understand what I mean)
Bernd
since I'm not a Mac user I stumpled across an ugly thing on Mac OS X:
On windows and linux I use GetPathPart(ProgramFilename()) to store own data files beside the program.
If I do this on a Mac it works, but ...
The files are stored inside the app folders and not beside them.
So if an other program wants to read such a stored file, it has no chance.
In my opinion ProgramFilename() returns the wrong value on a Mac.
But Ok.
What's the right way todo it right.
I didn't use the home directory, because I want my program 'flat' and don't want to create directories on my
own from what the users don't know something about.
(I hope you understand what I mean)
Bernd