...at the top of the top level of the outline?

c.rootPosition().insertAsNthChild(0) inserts as a child of the top node of the 
top level of the outline.

c.rootPosition().insertAfter() does what it should, but I want .insertBefore(). 
 Attempts to move the node after insertion have also failed.  I'm sure this is 
simple enough.

...never mind, I guess it's just:

  n = c.rootPosition().insertAfter()
  n.moveToRoot(c.rootPosition())

the top node of the top level of the outline being the "root position" throws 
me off some times.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to