Re: Getting the location of the Library
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:36:45 -0700
On 23 Jun 2013, at 2:32 PM, Ben Kennedy <email@hidden> wrote:
> 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).
I'm sorry -- this is not helpful advice; given the values in question, both the subtraction and the xor yield the same result. I should have realized this.
Instead I'll submit a replacement suggestion: what happens if you ask for NSApplicationSupportDirectory instead of NSLibraryDirectory? From the description of your problem, this sounds like more what you're actually after.
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