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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Mon Jul 28, 2014 8:49 pm

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

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

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

Post by magice » Mon Jul 28, 2014 9:43 pm

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?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Mon Jul 28, 2014 11:59 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply