In the Sandbox world; if you try this it will fail as the application will lose it's privileges to the file/folder. Apple recommend you use Security-Scoped Bodgemarks (sorry I threw up my breakfast); they are inherently bad due to time outs and incompatibility with Apple API, not to mention their incompatibility with every other database engine on the planet, apart from Apple's own CoreData.
Is your application Sandboxed?, if not I wonder if they've decided to port this 'security' over to non-sandboxed applications.
There are two alternative solutions; which are a little weird but are more effective than SSBs.
- Use the correct API for storing recent documents, once you use the Apple Recent Items menu, your application will have unhindered access to those items.
- Use Window Restoration; and attach the folderitem as a NSDocument to the window. All the time you use this mechanism you have unhindered access to that folderitem (until that window is closed).
I have submitted several feature requests to Apple to create a better solution than SSBs, (I clearly list the reasons why and why each suggestion would maintain security, yet make prevent the fallout of the holes in SSBs). Each one has been rejected and so have my bug reports about the issues regarding SSBs.