Re: needs saving

2011-11-04 Thread Peter M. Brigham, MD
Not so much, as it only gets triggered when closing the stack, and I want to set the dirty flag immediately when the user changes some content. Or as immediately as possible. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Nov 4, 2011, at 10:20 AM, dunb...@aol.co

Re: needs saving

2011-11-04 Thread Peter M. Brigham, MD
Right. Then I have to figure out what to hash, which is do-able. But it doesn't answer the most important question: I need to trap a general message to trigger this so as to set the dirty flag on the window. I suppose the backup plan would be a send-in-time handler to check the hash periodically

Re: needs saving

2011-11-04 Thread dunbarx
Peter. Does the "saveStackRequest" help" Craig Newman -Original Message- From: Peter M. Brigham, MD To: How to use LiveCode Sent: Fri, Nov 4, 2011 6:07 am Subject: needs saving Anyone know what the IDE uses to decide whether to ask about saving a stack when

Re: needs saving

2011-11-04 Thread Mark Schonewille
Hi Peter, As soon as a field gets focused, revolution puts "edited" into gRevStackStatus[short name of this stack]. That's a very bad trick and means that your stack is almost always "edited". A much better way is to calculate the hash of relevant data and compare this with a new hash value. I

needs saving

2011-11-04 Thread Peter M. Brigham, MD
Anyone know what the IDE uses to decide whether to ask about saving a stack when it closes? I'm trying to implement a "markDirty" routine for the Mac. I have a frontscript that catches (then passes) closefield and sets the modifiedMark of the stack, but that won't catch field contents modified b