December 30th, 2007 | Published in Google Desktop API
As I develop gadgets, I often want to store complex objects — not just isolated strings or numbers — for use across sessions. For example, consider arrays. When you want to store an array in the options object, your first impulse might be to create an entry for every array item, but in most cases that's not the best solution; you'd need to remember the new storage hierarchy and include additional information, such as array lengths, in separate entries.
Have a tip you'd like to share? Send it to gd-developer AT google DOT com.