• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FW: NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >FW: NSFileManager (From: "Tommy Braas" <email@hidden>)

  • Prev by Date: Re: Matrix of NSTextFields (creating it in IB)
  • Next by Date: Re: Copying things
  • Previous by thread: Re: FW: NSFileManager
  • Next by thread: Re: FW: NSFileManager
  • Index(es):
    • Date
    • Thread