On 27/09/07 10:53, Shane Stanley wrote:
On 27/9/07 6:23 PM, "Axel Luttgens"
<email@hidden> wrote:
Well, maybe are you both right... ;-)
Not really...
Well, see below. ;-)
Having a look at the dictionary of Pages
2:
application n [inh. application; see also Standard Suite] : The Pages
application.
[...]
selection (selection-object) : The current selection in the frontmost
document.
document n [inh. document; see also Standard Suite] : A Pages document.
[...]
selection (selection-object) : The current selection or insertion
point.
That's just sloppy wording;
Yes, that's exactly what I said, with another wording though, in a
subsequent part of my reply:
<excerpt>
The problem is that "selection" in the dictionary may be somewhat
confusing [...]
</excerpt>
But you dropped it in your reply; perhaps couldn't I manage to be
precise enough in my english writing attempt?
the selection is a property that returns a
reference to what's selected, which may be text, or may be just an
insertion
point.
Yes:
<excerpt>
[...] it is just the way to access that GUI artefact that
is either
a blinking vertical bar or grayed portion(s) of text in a document.
</excerpt>
Selection is a property;
Yes:
<excerpt>
Having a look at the dictionary of Pages 2:
applicationn [inh. application; see also Standard Suite] : The
Pages application.
[...]
selection (selection-object) : The current selection in the
frontmost document.
documentn [inh. document; see also Standard Suite] : A Pages
document.
[...]
selection (selection-object) : The current selection or
insertion point.
[...]
</excerpt>
the _class_ of the result may be insertion point
(or text, or word, or whatever).
Yes:
<excerpt>
[...]
get class of selection
insertion point
[...]
get class of selection
text
[...]
</excerpt>
This is all covered in Tech Note 2106.
Hmmm....
So, it looks like Page's scripting model
closely follows the GUI behavior.
In a document, one has either an insertion point or a selection
No -- one has a selection, which _may_ in fact be of the class insertion
point. There is no "or" involved.
In the GUI, one has
<excerpt>
[...] either a blinking vertical bar or grayed
portion(s) of text in
a document
</excerpt>
the first one being _commonly_, in a GUI context, named "insertion
point", the second one "selection".
And I could have been even more precise with "xor" instead of "or".
If you have a document with, say, 10
characters, it has 11 insertion points as elements, regardless of what,
if
anything, is selected.
Yes:
<excerpt>
get selection
insertion point before character 8 of body text of document
"Sans titre"
</excerpt>
Clearly, a document has multiple insertion points, if "insertion point"
is taken in the very precise sense of Page's _dictionary_.
But in the GUI, there is at most one insertion point.
But here comes the reason for my initial humorous attempt.
By writing:
"regardless of what, if anything, is selected"
you have used the root "select" in a GUI sense while, in the _same_
sentence, you have considered "insertion points" with the very
precise meaning from Page's dictionary.
That is, as soon as one mixes the semantic fields for "selection" and
"insertion point", everyone is right and wrong!
Let's try a small experiment.
All of which is consistent with the above.
Of course, as you just rephrased what I already said: there couldn't be
a better match...
You might also try setting the
contents of an insertion point.
Who did say that was not possible?
So, Shane, tell me sincerely: has my post been that illegible?
Could well have been the case, after all. ;-)
Axel
|