Re: Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Dragan Milić
Though it's definitely not an ideal solution, manually removing the container corresponding to the application's bundle identifier in "~/Library/Containers", and then relaunching the application causes the corresponding Application Scripts subfolder to get created. Thinking more about it, I real

Re: Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Dragan Milić
On pet 09.06.2017., at 14.59, Shane Stanley wrote: > You will get that error if your app isn't correctly code-signed. I tried with three signing identities (“Mac Development”, “3rd Party Mac Developer Application” and “Developer ID Application”) and all three behave the same. The application al

Re: Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Shane Stanley
On 9 Jun 2017, at 10:13 pm, Dragan Milić wrote: > > NSError *error; > NSURL *scriptsFolder = [[NSFileManager defaultManager] > URLForDirectory:NSApplicationScriptsDirectory inDomain:NSUserDomainMask > appropriateForURL:nil create:YES error:&error] > > This works fine if the scripts subfolder a

Creating "Application Scripts" subfolder in sandboxed environment

2017-06-09 Thread Dragan Milić
I'm developing a sandboxed application, which should run some scripts and following sandboxing rules, those should be located in "~/Library/Application Scripts/com.mydomain.myapp". The application also tries to be friendly to users and offers them to "install" predefined scripts (bundled in the

Problem with Seque's

2017-06-09 Thread Dave
Hi All, I have two iOS projects, in both projects (ProjectA and ProjectB), I have two view controllers in both Apps, one is the Initial View Controller and the other is presented via Button Click. In ProjectA this works ok. In ProjectB it crashes in main.m. When I look in the Storyboard file