Re: FW: NSFileManager
Re: FW: NSFileManager
- Subject: Re: FW: NSFileManager
- From: Carlos Weber <email@hidden>
- Date: Sun, 24 Jun 2001 08:53:28 -1000
On Sunday, June 24, 2001, at 07:08 , Tommy Braas wrote:
I am trying to use NSFileManager to get the current working directory
path from a Cocoa application. I don't want to throw up a file chooser
as I am trying to read a preferences file from within my application
package. Whenever I use the following code the output is "/" when I run
the application by double-clicking.
In addition to the other replies you've had, I might suggest that you
consider letting NSUserDefaults handle your preferences. That way each
user automatically gets her/his own set. I don't remember if the LC book
gets into this, but the documentation for the NSUserDefaults class is
quite complete, and there is an example in
/Developer/Examples/AppKit/UserDefaults/ which is very straightforward.