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

Re: Getting the location of the Library


  • Subject: Re: Getting the location of the Library
  • From: Ben Kennedy <email@hidden>
  • Date: Sun, 23 Jun 2013 14:32:06 -0700

On 23 Jun 2013, at 1:49 PM, Pax <email@hidden> wrote:

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

I haven't tested anything, but just looking at this line, I am inclined to guess the subtraction is your problem.  If your intent is to choose all domains except for the system domain, you'll need to XOR the value, not subtract it, i.e. (NSAllDomainsMask ^ NSSystemDomainMask).

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca


_______________________________________________

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: Ben Kennedy <email@hidden>
References: 
 >Getting the location of the Library (From: Pax <email@hidden>)

  • Prev by Date: Getting the location of the Library
  • Next by Date: Re: Getting the location of the Library
  • Previous by thread: Getting the location of the Library
  • Next by thread: Re: Getting the location of the Library
  • Index(es):
    • Date
    • Thread