Re: Security-scoped bookmarks, what's going on?

2016-09-06 Thread Quincey Morris
On Sep 6, 2016, at 22:44 , Graham Cox wrote: > > I still get the console messages: > > 2016-09-07 15:34:53.684 MyApp[9226:1630740] CFStringRef > __CFPasteboardIssueSandboxExtensionForPath(CFStringRef) : sandbox extension > creation failed: client lacks entitlements? for path: > [/Users/graham

Re: Security-scoped bookmarks, what's going on?

2016-09-06 Thread Graham Cox
> On 7 Sep 2016, at 2:12 PM, Quincey Morris > wrote: > > In other words, don’t create the bookmark data every time in > ‘encodeWithCoder’. Instead, create it once when you first get the URL from > NSOpen/SavePanel, store it as a property, and archive that NSData object. Ah, that makes (some

Re: Security-scoped bookmarks, what's going on?

2016-09-06 Thread Quincey Morris
On Sep 6, 2016, at 20:59 , Graham Cox wrote: > > I’m having trouble with security-scoped bookmarks in a sandboxed app. My understanding of security-scoped bookmarks (meaning: this used to be true ~2 years ago, but I haven’t tried recently to see if it’s still true) is that it’s not legal to re

Security-scoped bookmarks, what's going on?

2016-09-06 Thread Graham Cox
Hi all, I’m having trouble with security-scoped bookmarks in a sandboxed app. I have an object which has a URL as a property, being a folder the user chooses to save stuff to. This object is persistent, due to NSCoding. When I archive the URL, I use a security-scoped bookmark to save the data.