Hello Here is my patch to allow graphical sign loading and displaying in MacVim. I've tested it under Mac OS 10.6.3 with the CoreText Renderer. I'm totally new to Objective-C memory management, so you may want to check if there is no memory leak left.
The implementation work as follow :
For each loaded sign in vim, the vim backend convert it as a NSString and
store it in the vim runtime, and send a message to a gui to load the image.
The message is rerouted to the textview helper where it is loaded and
stored in a associative table. The file path is used as the key. Each
time the sign need to be drawn, the path is sent to the backend with the
screen coordinates.
Let me know if you have any suggestions/enhancements.
Cheers
Vincent Berthoux
PS: sorry if there is a double send, I didn't saw my first mail appear anywhere.
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Patch-to-add-graphical-signs-to-macVim.patch
Description: Binary data
