On 28 Jan 2016, at 12:50, Dev Sqwarq <sqwarq...@gmail.com> wrote:
> On 28 Jan 2016, at 12:36, Graham Cox <graham....@bigpond.com > <mailto:graham....@bigpond.com>> wrote: > > The app *has* been sandboxed in the past during development, so wondering if > there’s some info cached somewhere that needs clearing? Hey Graham Don’t know if anyone’s confirmed this already, but it’s definitely a problem local to you. I can write from my unsandboxed app (Xcode 7, OS X 10.11) like so without issue: NSError *myErr; NSURL* desktopURL = [[NSFileManager defaultManager] URLForDirectory:NSDesktopDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:&myErr]; NSURL *fileURL = [desktopURL URLByAppendingPathComponent:@"somefile.txt"]; NSString *hw = @"hello world"; [hw writeToURL:fileURL atomically:YES encoding:NSUTF8StringEncoding error:&myErr]; Best Phil @sqwarqdev _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com