Page 3 of 3

Re: How to know if an object has been edited/modified?

Posted: Mon Jul 28, 2014 8:49 pm
by dunbarx
Richard.

I am with you. The saving thing was just an example of how such a message might be used.

Perhaps the message might come with a system global, similar to the one you pointed out to me long ago (global "messageMessages" to enable the undocumented "messageHandled" message) that can be used or not, authors choice, so overhead is not excessive without a good reason.

Craig

Re: How to know if an object has been edited/modified?

Posted: Mon Jul 28, 2014 9:43 pm
by magice
I have been kind of half way following this thread, and one thing stands out to me. When you save a stack as a stand alone, it will ask you to save. If however you have just saved it will not. If you change any small thing anywhere, after saving, it will again ask you to save before creating a stand alone. How does the LC engine know that something has changed? Does it, perhaps for "undo" purposes have a hidden variable that saves the last edit and evaluate if that variable is empty?

Re: How to know if an object has been edited/modified?

Posted: Mon Jul 28, 2014 11:59 pm
by FourthWorld
magice wrote:How does the LC engine know that something has changed?
The IDE uses the same engine we use, using existing messages trapped in a frontScript IIRC, as was suggested mere many posts ago.