As far as I can tell there is some kind of feature in gtk that allows
you to embed a "view" from one app in another (how does this work? do
both apps have to be running simultaneously?).  To my knowledge there
is no similar technology in Cocoa so my guess is that there simply is
no way to implement this.  Anyway, I really do not understand how
Eclim works so don't take what I say too seriously but to me this
sounds difficult.

I was thinking along the same lines... Embedding apps in one another is
not a very 'Mac' thing, and I'm not sure the APIs support it like on
other platforms.

But...I can think of one example. Adobe Reader is embedded in Safari
using a web plugin...I think. This may be more about the web plugin
containing a minimal Adobe Reader implementation than embedding one app
in another, though. Or it may be more about a rich plugin interface
being offered by the browser. There are web plugins that work in
multiple browsers, though, too: the QuickTime plugin works in Safari,
Firefox, ...; the logmein.com Mac plugin works in multiple browsers,
too, I think. And there are more.

So there should be open source code in the Firefox sources that show the
browser side of the interface. There's probably Apple documentation,
too, particularly for the plugin side of it. Surely there are some open
source web plugins out there, too, that could be looked at.

Anyway, I think exploring along those lines may yield some fruit. If
Eclipse can be extended so it works with Mac web plugins, and a web
plugin written that either is MacVim, or interfaces with a running
MacVim, I think it could be done. Maybe start from the Eclipse side and
see if you can get the QuickTime web plugin to embed in Eclipse, just
showing some random hardcoded URL. If you can show a movie in Eclipse
with the QuickTime web plugin, you should be able to get MacVim working
somehow. There is bidirectional communication available between plugin
and browser, too, for making each change location, etc.. so that could
be 'abused' to communicate Vim-Eclipse stuff rather than URLs.
Alternatively, developing your own plugin interface may be better, if
you can find how the web plugin interfaces deal with the windowing
issues and use the same approaches.

Either way, I with Bjorn expect it to be difficult, though.

But it also would be very cool.

Ben.



--
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to