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 [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
