On 16/02/10 1:38 PM, Nicholas Clark wrote:
I've done some more considerable digging around in docs but I haven't
gotten around to actually doing any code testing. Here's what I have
found so far:

-         Currently Eclim uses reflection to find fields on the
current 'view' that is to house the vim instance. These fields
evidently come directly from the local platform API. If this is
correct, then finding the OS X equivalent will at least get us this
number. According to this page [1] , possible candidates would be
windowHandle, windowNum, or windowRef.

-         The other piece of the puzzle, then would be take this
number in MacVim, and bind to the window it returns, possibly using a
method signature similar to the one here [2].

I think this second part is likely to be where a different approach is
needed. Looking at the Internet Plug-Ins docs [3], windowRef is a good
candidate for being able to make this work, treating MacVim like a kind
of 'out of process' plugin using the Netscape API. If Eclipse is truly
Cocoa, though, perhaps even the WebKit Plug-In API is a possibility,
which would probably be easier.

So I think this fits firmly in the 'possible but difficult' category.

Ben.



[1] http://www.gnu.org/software/gnustep/resources/documentation/Developer/Gui/Reference/NSWindow.html#method$NSWindow-windowHandle [2] http://developer.apple.com/Mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/doc/uid/20000012-DontLinkElementID_103 [3] http://developer.apple.com/mac/library/documentation/InternetWeb/Conceptual/WebKit_PluginProgTopic/WebKitPluginTopics.html




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

Reply via email to