• 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
Getting path to ~/Library/Application Support/
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting path to ~/Library/Application Support/


  • Subject: Getting path to ~/Library/Application Support/
  • From: Enigmarelle Development <email@hidden>
  • Date: Sun, 16 Dec 2001 18:02:46 -0500

What's the best way to get the path to the user's Application Support Folder? Currently I'm using the below code, but I'm not sure if it's reliable in all cases.

NSArray *libraryDirectories = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, FALSE);

NSString * appSupportFolder = [[libraryDirectories objectAtIndex: 0 ] stringByAppendingString:(NSString *)@"/Application Support/"];

TIA
-john c. warner
enigmarelle development
http://www.enigmarelle.com/


  • Follow-Ups:
    • Re: Getting path to ~/Library/Application Support/
      • From: Jim Correia <email@hidden>
    • Re: Getting path to ~/Library/Application Support/
      • From: Angela Brett <email@hidden>
References: 
 >What is the difference between linked and other frameworks in PB AppKit project? (From: Gerben Wierda <email@hidden>)

  • Prev by Date: What is the difference between linked and other frameworks in PB AppKit project?
  • Next by Date: Re: What is the difference between linked and other frameworks in PB AppKit project?
  • Previous by thread: What is the difference between linked and other frameworks in PB AppKit project?
  • Next by thread: Re: Getting path to ~/Library/Application Support/
  • Index(es):
    • Date
    • Thread