Oh I hope someone can shed some light...
Here's a double-click function that opens up an Ed window:
void myobj_dblclick(t_myobj *x)
struct ed *edit_window;
edit_window = ed_new((Object *)x);
post("number of lines: %d", edit_window->e_nlines);
x->script is declared:
(and the script_len is also set appropriately).
The text of the script -- about 340 chars -- shows up in the editor window
fine and dandy, but the e_nlines var is set to 16914848. This looks like
a pointer, but I tried various disambiguations and got either crashes or
(PS: What I'm really after is access to the text in the Ed window via the
e_teh TEHandle, if this is possible.)