Re: Newbie: Current Apps Directory
Re: Newbie: Current Apps Directory
- Subject: Re: Newbie: Current Apps Directory
- From: Douglas Davidson <email@hidden>
- Date: Tue, 15 Apr 2003 17:36:57 -0700
On Tuesday, April 15, 2003, at 4:54 PM, Craig Bakalian wrote:
Hold on here. My application permits the user to place files in the
same folder as the application so the application can access the files
(all the files). I did not want the user doing complex selection in an
open panel. I felt the user experience would be simplified. Writing a
help book that tells the user to place a file in this or that ~/Library
folder is not a good idea (my opinion).
Please at least give the user the option of specifying the folder(s) in
which the files should be found, if not the individual files
themselves. If you make the default value for this location the same
folder in which the app is located, that may be OK, but I don't
recommend making the location unalterably the folder in which your app
resides. Often applications reside on file servers, on CD-ROMs, in the
/Applications directory, or otherwise someplace that some users can't
write to. Also, many users prefer to keep their applications separate
from their data files, for example because they use different backup
strategies for them.
In case it hasn't been mentioned before, [[NSBundle mainBundle]
bundlePath] will tell you where your (bundled, Cocoa) application
resides. There is a CFBundle equivalent as well.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.