• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get path to user preference folder


  • Subject: Re: Get path to user preference folder
  • From: June Van Dyke <email@hidden>
  • Date: Sat, 15 Feb 2003 10:36:16 -0500

On 2/15/03 10:21 AM, "Daniel Aarno" <email@hidden> wrote:

> How can I retrieve the path to the a users preference folder in the
> correct manner, i.e how can I get ~/Library/Preferences without
> hard-coding it in my sources?

[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Preferences"]

That should do what you want.
--

-- sinclair44

[self becomeWorldDictator];

- (void)becomeWorldDictator
{
[[world currentLeaders] assassinate];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
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, updated
      • From: Daniel Aarno <email@hidden>
  • Prev by Date: Mail.app & Rendezvous
  • Next by Date: Re: Get path to user preference folder, updated
  • Previous by thread: Get path to user preference folder
  • Next by thread: Re: Get path to user preference folder, updated
  • Index(es):
    • Date
    • Thread