Re: Path To Folder Where App Is
Re: Path To Folder Where App Is
- Subject: Re: Path To Folder Where App Is
- From: Ondra Cada <email@hidden>
- Date: Tue, 22 Mar 2005 04:58:03 +0100
On 22.3.2005, at 4:50, Charilaos Skiadas wrote:
I have a folder named "boards" that is in the same folder as the app,
but its contents can not be stored in the bundle because the user
makes changes to its contents, I need to load files from this folder
so I need to tell my app the path to it relative to itself.
Wouldn't it be better if you moved this folder to
~/Library/Application Support/YourAppname/ ?
I guess then it would be a tad harder for the user to find it, though
it seems more reliable (i.e. what if your user decides for whatever
reason to move just your app to another location?) and it's easier for
you to find. :-)
Quite. What's even more important is
- the Application folder is shared betwixt all users;
- in any decent set up, it is not writeable by any of them (but by an
admin only).
That's the main reason all such things *do always* belong to
Library/Application Support and *never ever* to Applications.
Incidentally... myself, instead of ~/Library/Application
Support/<appname> I use ~/Library/Application Support/<app signature>,
i.e., in my case, something like ~/Library/Application
Support/cz.ocs.MyApp. I'd say it's much better, since app names may
easily clash, whilst signatures would not.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden