Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
benbrackenc74 opened this issue Oct 24, 2022 · 0 comments
Open

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

benbrackenc74 opened this issue Oct 24, 2022 · 0 comments

Comments

@benbrackenc74
Copy link

benbrackenc74 commented Oct 24, 2022

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"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant