Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MacPerl Interfacing

13 views
Skip to first unread message

Ryan Joseph

unread,
Jan 26, 2003, 12:57:59 PM1/26/03
to macperl...@perl.org
Hello. I'm looking for the means to interface a editor of mine to MacPerl
but cannot find any supporting information. I assume it involves sending
AppleEvents but I can't find these details either. Is someone able to direct
me to the pertinent information? cheers.

Chris Nandor

unread,
Jan 28, 2003, 8:39:47 AM1/28/03
to Ryan Joseph, macperl...@perl.org

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/

Matthias Neeracher

unread,
Jan 28, 2003, 12:38:35 PM1/28/03
to Chris Nandor, Ryan Joseph, macperl...@perl.org
> 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.

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


0 new messages