New topic: 

F.Name assignment under sandboxing

<http://forums.realsoftware.com/viewtopic.php?t=46273>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        jay4365          Post subject: F.Name assignment under 
sandboxingPosted: Tue Dec 18, 2012 8:05 am                         
Joined: Tue Dec 18, 2012 7:29 am
Posts: 1                Hello all, can anyone shed any light on this sandboxing 
related issue:

I have an app which renames files. It has worked fine and been sold for a 
couple of years. In an attempt to get it ready for the Mac App Store I have 
made a Cocoa build which works fine until sandboxed.

The user adds a file to a listbox via an open file dialog. I am using 
OpenDialog and with the entitlement for read (or read/write) access to user 
selected files (otherwise it does not appear, and causes a delay in the app, no 
visible crash or error. Nothing happens).

The problem comes when renaming. For example, the user selects a file from the 
Music folder. The app uses F.Name = new name to rename the folderitem, but 
generates an OS error -5000, which I can't locate the meaning of. This error 
does not happen when not sandboxed.

I can 'fix' the error by adding read/write entitlements for the Music folder 
but the App Store won't accept it claiming my app shouldn't need the 
entitlements. I understand their point, but the fact is it does need the 
entitlements to work properly. They also claim I should not be accessing the 
music folder (or Movies etc), but I've told them such a move would render the 
app useless if people want to rename files in those folders.

I have tried NSOpenPanel, and have also tried using security scoped bookmarks, 
they make no difference. 

I'm using the lastest Xcode + tools, RB 2012 r2, latest public OS X.   
                             Top                MonkeybreadSoftware          
Post subject: Re: F.Name assignment under sandboxingPosted: Tue Dec 18, 2012 
8:18 am                                 
Joined: Wed May 10, 2006 2:42 pm
Posts: 2822
Location: Germany                -5000 is simply a permission error.

Greetings
Christian      
_________________
See you in Orlando, Florida for Real World 2012
More details and registration here:
http://www.realsoftware.com/community/realworld.php  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to