• 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: Get path to user preference folder, problem solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get path to user preference folder, problem solved!


  • Subject: Re: Get path to user preference folder, problem solved!
  • From: Ali Ozer <email@hidden>
  • Date: Sun, 16 Feb 2003 13:38:33 -0800

On Saturday, February 15, 2003, at 02:41 PM, Daniel Aarno wrote:
Still I find it a bit strange that there is not a higher level API for doing this kind of things, at least it should be a part of CF so as to remove the need for Carbon, but this is only my thoughts.

As pointed out most things depend on Carbon in one way or another...

I do agree it would be nice to have a Cocoa interface to this functionality and sensibly so for CF as well. It is just the better thing to do API wise.

You can use the NSSearchPathForDirectoriesInDomains() function in Foundation/NSPathUtilities.h, then append the path component "Preferences" to the result. This function doesn't have selectors for folders below Library. Or, instead of putting stuff in Preferences, if appropriate you can choose one of the other subfolders, or your own, in ~/Library.
Ali
_______________________________________________
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.
  • Follow-Ups:
    • Re: Get path to user preference folder, problem solved!
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: Get path to user preference folder, problem solved! (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Shared Memory and Distributed Objects
  • Next by Date: NSString is cutting off characters
  • Previous by thread: Re: Get path to user preference folder, problem solved!
  • Next by thread: Re: Get path to user preference folder, problem solved!
  • Index(es):
    • Date
    • Thread