Page 1 of 1

Cant Open Data Stack

Posted: Wed Aug 31, 2011 10:52 pm
by omtracey
I am attempting to make an App in iOS that contains Data, and am attempting to create a Secondary Stack for the Data, whereas the Primary Stack will just be a splash screen.

I followed the Tutorial to Create the Stocks Stack, which does save data, but for some reason, I am unable to get my Data Stack to load in the iOS simulator. My Script is successful all the way to the last line, it simply wont open/display the Stack. I can see the Stack in the MacOS Finder, it got copied to the proper location, but how do I get it to display/open?

on mouseUp
put specialFolderPath("documents") & "/RoboDexData.livecode" into tMainStackPath
if there is not a file tMainStackPath then
## This is the first time the app has been run
put specialFolderPath("engine") & "/RoboDexData.livecode" into tOriginalStackPath
put url ("binfile:" & tOriginalStackPath) into url ("binfile:" & tMainStackPath)
end if
go stack tMainStackPath
end mouseUp

Re: Cant Open Data Stack

Posted: Thu Sep 01, 2011 12:37 am
by Mark
Hi,

AFAIK you can use only one stack window in LiveCode for mobile devices. You will have to find a different way to save your data, e.g. in text files. A splash screen is already built in. This splash screen is shown until the preOpenStack (and preOpenCard, preOpenBackGround, startUp, etc) handler has finished.

Kind regards,

Mark