On Feb 20, 2012, at 8:45 PM, Pete wrote:

> As for datagrids, the controls that are permanent fixtures of a datagrid
> are easily identifiable, the rest should not be considered in this scheme
> since they change dynamically every time data is loaded into a datagrid,
> not when the datagird structure changes.  The job of a version comparison
> tool is to detect permanent structural changes, not temporal or data
> storage changes.  The properties of the datagrid itself and the properties
> of the controls in it's template are all that matters since the latter form
> the basis for any temporary controls that are created in the datagrid.

The temporary objects in a datagrid change dynamically IF data is reloaded. 
What if the developer is using a datagrid as a static list and needs to restore 
the contents? I think the solution is to bypass the temporary objects of a 
datagrid, instead saving the datagrid data in some fashion (see my functions 
for converting an array to text and back again) as a special case. The first 
time a stack is "versioned" it could present the dev with a list of datagrid 
objects and allow the dev to choose between versioning the contents or the 
structure + data. 

Where things are going to get really dicey is stacks that are constantly 
creating and deleting objects and groups. I am not a big fan of using Livecode 
this way, but people do, so there you are. 

Bob
_______________________________________________
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

Reply via email to