bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSTextView NSTEXTVIEW_SYNC patch


From: David Ayers
Subject: RE: NSTextView NSTEXTVIEW_SYNC patch
Date: Tue, 23 Jul 2002 23:41:35 +0200

Sorry, here it is:

> -----Original Message-----
> From: bug-gnustep-admin@gnu.org [mailto:bug-gnustep-admin@gnu.org]On
> Behalf Of David Ayers
> Sent: Tuesday, July 23, 2002 11:32 PM
> To: bug-gnustep@gnu.org
> Subject: NSTextView NSTEXTVIEW_SYNC patch
>
>
> Hello all,
>
> while investigating some of the mechanics of NSTextView I ran across the
> _syncTextViewsByCalling implementation. Eventhough the comments mention:
>
>    We need to explicitly call the methods - we can't copy the flags
>    directly from one textview to another, to allow subclasses to
>    override eg setEditable: to take some particular action when
>    editing is turned on or off.
>
> they don't fully honor the fact, that the layout manager my have different
> subclasses of NSTextView since the implementation caches the
> method pointer
> to the current NSTextView and applies it to all textContainers. Here is a
> patch using NSInvocation's invokeWithTarget: instead. (It also
> replaces the
> NSTEXTVIEW_SYNC macro call by using a version that doesn't need a
> parameter.)
>
> I don't have a "real" Test-App that uses a layout manager with multiple
> NSTextViews. Is there one around? Or any easy accesible source
> from which I
> could quickly create a GSTest bundle?
>
> Cheers,
> Dave.
>
>
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnustep
>

Attachment: NSTextViewSYNC.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]