Hi,On Wed, Jul 30, 2008 at 3:55 AM, björn wrote:
I agree with Jiang s sentiment here. However, for me personally it is
Message 1 of 3
, Jul 29, 2008
On Wed, Jul 30, 2008 at 3:55 AM, björn <bjorn.winckler@...> wrote:
> I agree with Jiang's sentiment here. However, for me personally it is
> easier if you send patches as attachments as I prefer to open them in
> MacVim so that I get syntax highlighting etc. Also, I usually use the
> Gmail web interface which means I have to "Show original" -> "Save
> As..." and then open in MacVim whenever the patch is inline.
OK.. I'll sent them as attachments next time.
> Yes, this is something I have been thinking about and its been brought
> up a couple of times before. We can't create a common base class
> (e.g. MMView) and inherit from this since MMTextView needs to inherit
> from NSTextView whereas MMAtsuiTextView needs to inherit from NSView.
> The only solution I've come up with so far is to create a sort of
> "delegate" class which implements all the common code such as
> key/mouse handling and then we can forward all the relevant calls from
> MMTextView/MMAtsuiTextView to the delegate. It will require some glue
> code but at least we don't need to maintain duplicate code. What do
> you think about this Jiang?
I agree, that seems to be the only viable solution. We need something like
"MMTextViewController" which both MMTextView and MMAtsuiTextView
use as delegate. I think you can start implementing that for MMTextView,
then I can use it as a reference implementation to finish up the interface
between that controller and MMAtsuiTextView.
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
Your message has been successfully submitted and would be delivered to recipients shortly.