Does closeStack trigger in the iOS simulator?
Posted: Wed Sep 07, 2011 12:54 am
The "closeStack" message seems to work fine when closing a stack from within LiveCode but does not seem to trigger for me when running the same stack in the simulator. It also does not work on my iPhone.
See the attached stack and here is the code:
-------------------------------------------------------------------------------------------------------------
on openStack
put "Time stamp: " & the MyTimeStamp of this stack into field "TimeStampField"
end openStack
on closeStack
set the MyTimeStamp of this stack to the milliseconds
save this stack
pass closeStack
end closeStack
-------------------------------------------------------------------------------------------------------------
What I expect is that each time the stack closes it updates the stack custom property "MyTimeStamp". Then, each time the stack is opened it displays the previously saved "MyTimeStamp" in the field "TimeStampField"
What I get is the time stamp that was placed in the custom property while I executed it from within LiveCode and the value never changes.
LiveCode build 1445 4.6.3
xCode 4.1
Steven (Colorado, USA)
See the attached stack and here is the code:
-------------------------------------------------------------------------------------------------------------
on openStack
put "Time stamp: " & the MyTimeStamp of this stack into field "TimeStampField"
end openStack
on closeStack
set the MyTimeStamp of this stack to the milliseconds
save this stack
pass closeStack
end closeStack
-------------------------------------------------------------------------------------------------------------
What I expect is that each time the stack closes it updates the stack custom property "MyTimeStamp". Then, each time the stack is opened it displays the previously saved "MyTimeStamp" in the field "TimeStampField"
What I get is the time stamp that was placed in the custom property while I executed it from within LiveCode and the value never changes.
LiveCode build 1445 4.6.3
xCode 4.1
Steven (Colorado, USA)