A different kind of collection
Tue 21 Jun 2011, 03:58 PMTweet
by Ben Langhinrichs
As I mentioned in my previous post, it has been 13 years since we have added a new class to the Midas Rich Text LSX, though obviously we have added many new methods and properties and feature sets. For our upcoming release, we are adding a new class which may seem at first to be underwhelming.
GeniiSession (represents the entire session, but rarely used. Added for 1.00, July 1997)
GeniiRTItem (represents a rich text instance and the note which contains it. Added for 1.00, July 1997)
GeniiRTChunk (represents a defined chunk of a GeniiRTItem. Added for 1.00, July 1997)
GeniiRTComparison (utility class for comparing two GeniiRTItems. Added for 1.40, July 1998)
GeniiCollection (represents a defined collection of notes. To be released with next version)
Big whoop-di-doo, right? There is already a NotesDocumentCollection, and even a NotesNoteCollection, and we can cycle through those just fine.
This is true, but the GeniiCollection allows for some interesting new tricks. In the script below, I show four different ways the GeniiCollection class can be useful, two of which involve acting on the entire collection together, and two which involve cycling through it in different ways.
Copyright © 2011 Genii Software Ltd.
What has been said: