Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs






June, 2011
SMTWTFS
   01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

Search the weblog





























Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Tue 21 Jun 2011, 03:58 PM
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.

Existing classes:

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)

New class:
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.

Collected examples

Copyright © 2011 Genii Software Ltd.

Tags: