On 15/10/2012, at 2:10 PM, Mark Smith wrote: > Monte Goulding wrote >> on UIApplicationWillResignActiveNotification >> -- do your encryption here >> end UIApplicationWillResignActiveNotification > > I'm going to try: > > > on UIApplicationWillResignActiveNotification > close this stack > end UIApplicationWillResignActiveNotification
Hmm... I'm not positive that's the best plan as you will probably find your stack is closed when the user awakens their phone. I would suggest something like this: on closeStack encryptItAll end encryptItAll on UIApplicationWillResignActiveNotification encryptItAll end UIApplicationWillResignActiveNotification on encryptItAll -- do your encryption and save end encryptItAll If you really want to force quit at sleep then try: on UIApplicationWillResignActiveNotification quit end UIApplicationWillResignActiveNotification Not sure if apple will be happy about that though.... Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode