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

Getting the location of the Library


  • Subject: Getting the location of the Library
  • From: Pax <email@hidden>
  • Date: Sun, 23 Jun 2013 21:49:19 +0100

Just a quickie, I hope!  I'm writing a sandboxed application that uses plugins.  The plugin directories that I want to load from are '/Library/Application Support/MyApp' and '~/Library/Application Support/MyApp'.
I don't really care if  '~/Library/Containers/com.myapp/Data/Library/Application Support/MyApp' is included or not - since it's not a location that the users of my app are likely to think of when adding or removing plugins.

The code I am using to get the location of the Library is:
NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSAllDomainsMask - NSSystemDomainMask, YES);

This returns '/Library' and '~/Library/Containers/com.myapp/Data/Library' - which is not entirely what I'm after.  How can I get '~/Library' as well?  Am I just going to have to work this out for myself, or is there a ready made function that I can use to get this for me?

Thanks for any help that you can provide.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting the location of the Library
      • From: Kyle Sluder <email@hidden>
    • Re: Getting the location of the Library
      • From: Ben Kennedy <email@hidden>
  • Prev by Date: Re: Why is it wrong to have relationships without an inverse in Core Data?
  • Next by Date: Re: Getting the location of the Library
  • Previous by thread: Re: Why is it wrong to have relationships without an inverse
  • Next by thread: Re: Getting the location of the Library
  • Index(es):
    • Date
    • Thread