XML Is a Godsend

|

I was working on my drag and drop prototype for MyPasswordSafe a couple of nights ago. I had it so items could be dragged and dropped, but still needed to do the same thing with groups. Drag and drop works by storing the data in a byte array, and for awhile I thought I would need to create my own binary format to hold a tree structure. Right before I started to take a crack at groups, the idea to use XML popped in my head. XML to the rescue! By nature it's hierarchical and fit the problem extremely well. XML is a tree. I'm trying to drag and drop a tree. Perfect!

I have the prototype done now, and everything works. I now need to come up with an abstract MVC. That and a undo/redo system, which may go hand in hand a bit. After drag and drop, undo/redo is the biggest new feature I have scheduled for MyPasswordSafe. It's gonna require some thinking.

Reply

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
More information about formatting options

Ad's by Google