Login to participate
  
       
Register   Lost ID/password?
Louis Kessler’s Behold Blog » Blog Entry           prev Prev   Next next

Saturday, April 26, 2003 - Sat, 26 Apr 2003

There is more to the Saving and Retrieving of the Organize info than meets the eye. When Saving tags, only the non-default values are saved. When loading them in (i.e. merging them to the data already in memory), then only the changed values are updated. These values are saved to a data structure whenever the “Apply” or “OK” buttons are pressed and are also saved to a stream for recall. If the “Cancel” button is pressed, then the last stream saved must be reloaded so that any changes are canceled. But the last stream contains only the differences from the defaults, so the default values must first first be loaded.

And then this works a bit differently for Tags than for Numbering. With Numbering, the defaults always have to be loaded first, since a change to a non-default value would not be overwritten if the default value was desired.

These are the sorts of inconsistencies and niggly details that only become apparent when you start to implement and test the code. But it is important to work hard to get it right.

No Comments Yet

Leave a Comment

You must login to comment.

Login to participate
  
       
Register   Lost ID/password?