So you want your editor to show up with its own menu, as BBEdit can? Most
of the code to tell you how to do it is available:
http://cvs.macperl.org/cgi-bin/viewcvs.cgi/macperl/macperl/
Specifically, I think you want MPEditor.c. It handles all the
communication with the external editor (IIRC). It shows you what MacPerl
sends to the external editor, and expects to receive.
I also wonder if there might be a way to get your hands on the Alpha source:
http://www.kelehers.org/alpha/
I believe Alpha acts as an external editor just as BBEdit does, so if you
can get their source, that might help.
Does that help? If you want more specific information, fire away.
--
Chris Nandor pu...@pobox.com http://pudge.net/
Open Source Development Network pu...@osdn.com http://osdn.com/
Yes. You can find the entire BBEdit protocol on
http://www.barebones.com/support/develop/odbsuite.shtml
I'm not 100% sure that this is still the same protocol, and MacPerl
uses only a subset of it, but it may help you understand the MacPerl
code further.
Matthias