Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 3:46 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: App Store
PostPosted: Sun Apr 21, 2013 6:19 pm 
Offline

Joined: Tue Feb 12, 2008 6:12 pm
Posts: 51
I am having problems with two apps to be approved in App Store.

Problems noted by the Apple team:
Quote:
File Export stalls the app. No files are exported for either option.


and for the other app
Quote:
2.3 - The user is unable to successfully export a CSV file.


The problem is i cannot reproduce the error !! They told me to See Technical Q&A QA1778: How to reproduce bugs reported against Mac App Store submissions. ( https://developer.apple.com/library/mac ... index.html ) Basically it says to test the app as a Guest user. I did that, and all my apps still works as I designed. I noted the problem rises when exporting/saving a file, but thats something that works flawlessly in my computer !!

I thought maybe the problem was codesigning and sandboxing. But I am using Ohanaware App Wrapper, and I choose in Sandbox Open/Save dialog Read and Write permission.

I do not know what else to try. If someone has any hint it would help me a lot.

_________________
Consultório Médico
Cirurgião Vascular


Top
 Profile  
Reply with quote  
 Post subject: Re: App Store
PostPosted: Tue Apr 23, 2013 9:03 am 
Offline

Joined: Tue Feb 12, 2008 6:12 pm
Posts: 51
I got the following answer from Sam Rowlands from ohanaware
Quote:
Hi Alexandre,
There are two things I can think of might cause an issue, in the Sandbox settings of App Wrapper make sure that “Open/Save Dialogs:” are set to “Read & Write”.
Image


The second issue which is think is probably what you are facing as it trips a few developers up. You can ONLY save to the file which you receive from the Save dialog, you cannot change it’s name or create a temporary file in the same directory and then re-name it. Your data must be written to that file and that file only.

Be warned however, that some Apple internal APIs create a temporary file and then replace the original with the temporary file. We had to appeal a rejection, because the reviewer doesn’t understand enough about Apple’s OS and wouldn’t listen to me when I told him that this was Apple’s doing and not mine.

Thanks for supporting our software.

Sam Rowlands


The first suggestion I already did.
But the second one is something much more advanced. I am saving the file this way:

dim f as folderitem
dim tos as textOutputStream


f= GetSaveFolderItem("text/plain","export.xml")
if f = nil then exit sub 'cancel clicked

tos = TextOutputStream.Create(f)
if tos = nil then 'failed?
MsgBox("The file could not be created!")
exit sub
end if


tos.WriteLine s

tos.Close 'close file


Any ideas ????
Thanks !!

_________________
Consultório Médico
Cirurgião Vascular


Top
 Profile  
Reply with quote  
 Post subject: Re: App Store
PostPosted: Fri May 03, 2013 10:47 am 
Offline

Joined: Tue Nov 08, 2005 5:52 pm
Posts: 111
Thanks for the post. Open/Save dialogs are currently what's preventing me from submitting my app. Will check out Sam's wrapper.


Top
 Profile  
Reply with quote  
 Post subject: Re: App Store
PostPosted: Sat May 18, 2013 4:37 pm 
Offline

Joined: Tue Feb 12, 2008 6:12 pm
Posts: 51
he suggested, let's see if app is approved:
Quote:
Are you building a Carbon or Cocoa app? While a Carbon app can be Sandboxed, I’ve posted the specific changes you need to make online somewhere, I can dig it out if you like.

As for Cocoa, I don’t know if the ‘GetSaveFolderItem’ method uses the correct NSSavePanel or not. So I would suggest changing the code to function more like below.

Dim nsd as new SaveAsDialog
nsd.filter = “text/plain”
nsd.suggestedName = “export.xml”

Dim f as folderitem = nsd.showmodal
if f = nil then return // User Cancelled.

_________________
Consultório Médico
Cirurgião Vascular


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group