Re: Getting the location of the Library

2013-06-24 Thread Mike Abdullah
On 23 Jun 2013, at 23:09, Kyle Sluder k...@ksluder.com wrote: On Jun 23, 2013, at 1:49 PM, Pax 45rpmli...@googlemail.com wrote: 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

Re: Getting the location of the Library

2013-06-24 Thread Pax
Are you sure about this? Because my sandboxed app seems to be able to load plugins from the root library application support folder without difficulty. In addition, I can't see how it breaches the sandbox to load plugins from anywhere - no files are being modified (just code loaded from the

Re: Getting the location of the Library

2013-06-24 Thread Greg Parker
On Jun 24, 2013, at 2:00 AM, Pax 45rpmli...@googlemail.com wrote: I can't see how it breaches the sandbox to load plugins from anywhere - no files are being modified (just code loaded from the plugin), and the plugin is subject to my application's sandbox privileges (and thus unable to do

Re: Getting the location of the Library

2013-06-24 Thread Kyle Sluder
On Mon, Jun 24, 2013, at 02:00 AM, Pax wrote: Are you sure about this? Because my sandboxed app seems to be able to load plugins from the root library application support folder without difficulty. By root library application support folder, are you referring to /Library (as opposed to

Getting the location of the Library

2013-06-23 Thread Pax
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

Re: Getting the location of the Library

2013-06-23 Thread Ben Kennedy
On 23 Jun 2013, at 1:49 PM, Pax 45rpmli...@googlemail.com 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

Re: Getting the location of the Library

2013-06-23 Thread Ben Kennedy
On 23 Jun 2013, at 2:32 PM, Ben Kennedy b...@zygoat.ca 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

Re: Getting the location of the Library

2013-06-23 Thread Kyle Sluder
On Jun 23, 2013, at 1:49 PM, Pax 45rpmli...@googlemail.com wrote: 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'. You do not