Skip to content

simplemax.c doesn't use an external editor #57

Description

@benbrackenc74

simplemax.c example could be updated to show sending the 'openwindow' message to the jed, which should make it compatible with using an external editor. Something like:

void simpletext_dblclick(t_simpletext *x)
{
	if (x->t_editor)
		object_attr_setchar(x->t_editor, gensym("visible"), 1);
	else {
		x->t_editor = object_new(CLASS_NOBOX, gensym("jed"), x, 0);
		object_method(x->t_editor, gensym("settext"), *x->t_text, gensym("utf-8"));
		object_attr_setchar(x->t_editor, gensym("scratch"), 1);
		object_attr_setsym(x->t_editor, gensym("title"), gensym("simpletext"));
	}
	object_method(x->t_editor, gensym("openwindow"));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions