I will translate my app with the custom properties in the stack "custom properties.
In OSX it's working.
In IOS when the program is closed and then relaunch, the last properties are not maintained.
I search for several days for a solution, i have read the forum and the tutorials on the web.
I do not understand how you must do to save the data or properties
Here is the code for my stack :
Code: Select all
global tDataStackPath
on preOpenStack
put specialFolderPath("documents") into tDataStackPath
put tDataStackPath & "/data.livecode" into tDataStackPath
if not (there is a file tDataStackPath) then
create stack "myDataStack"
answer "Create stack:" && the result
put it into temp
set the visible of temp to false
set the filename of temp to tDataStackPath
save temp
answer "Save stack:" && the result
## etc. Until you see WHERE it fails...
go stack "MyMainStackNameHere"
end if
restoreMyCardFromDataStack // i will come to this in a moment
end preOpenStack
command saveMyCardToDataStack
copy card "myCard" of this stack to stack tDataStackPath
delete the first card of stack tDataStackPath
end saveMyCardToDataStack
command restoreMyCardFromDataStack
copy card "myCard" of stack tDataStackPath to this stack
delete the first card of this stack
end restoreMyCardFromDataStack
on shutdown
saveMyCardToDataStack
save stack tDataStackPath
end shutdown
Code: Select all
global tDataStackPath
on mouseUp
set the customPropertySet of this stack to "Anglais"
set the label of btn "b1" of cd 1 to the b1 of this stack
end mouseUp
Best regards
Boris