FTC beta 14 preview 25

Beta 14 preview 25 has been uploaded to the web site.

http://www.truenorthsoftware.com/Realbasic/FormattedText.html

WARNING: DO NOT DEPLOY PREVIEW 25 TO AN END APPLICATION!!!

In this preview I have completed the first go around for changing
over from integer based indexes to class based indexes. There were
over 300 spots that were affected in this change which is why
there has been a delay since the last preview. I guarantee that
there are still a few spots that I have broken with this preview.
So I ask you guys to put this preview through "spaz-o-matic"
testing and report any bugs you find to the list.

I have gone through all the undo cases and they have been
converted over to the new class indexes, so all the undo cases
should be working. So the only thing left to releasing beta 14 is
cleaning up any existing bugs caused by the change over.

The new class added to this preview is FTInsertionOffset. This is
the class used to represent indexes into the document. It is based
on the absolute paragraph index and insertion offset into the
paragraph. This gives precise control on where the point is. This
clears up the ambiguous situations where an index could represent
two points in the document between paragraphs. The
FTInsertionOffset class has all sorts of goodies in it that allow
you to do all sorts of things.

I previously wrote:
I am considering changing the way insertion points are handled.
Currently the insertion point can be represented as a single
integer that is the offset into the document. This representation
can be ambiguous in certain situations like on the border of a
paragraph. Where does the insertion caret go (the end of the first
paragraph or the beginning of the second paragraph)?

I want to change the insertion point to a class representation
that will change it into a combination of absolute paragraph index
and an offset into the paragraph. This way you can represent any
point in the document with absolute precision.

The downside to this change is that it may break your existing
code. I want to know if and how much this will affect you. This
change is coming, but I want to make it as painless for you as
possible.



FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.


Other related posts: