Hi,

here is a fix for NSTextView (cvs version from 2000-09-07):
The patch just sets the textView for the textContainer.
With the patch NSTextContainer will set itself as observer using the textView  
as notification object (not nil).


2000-09-10 Georg Fleischmann

        * gui/Source/NSTextView.m
        ([NSTextView setTextContainer:]):
        set text view for text container


*** gui/Source/NSTextView.m.old Sat Sep  9 23:39:35 2000
--- gui/Source/NSTextView.m     Sun Sep 10 14:00:29 2000
***************
*** 99,105 ****

  - (void) setTextContainer: (NSTextContainer*)aTextContainer
  {
!   ASSIGN(_textContainer, aTextContainer);
    // FIXME: Could also get a reference to the layout manager
    //ASSIGN(_textStorage, [[aTextContainer layoutManager] textStorage]);
  }
--- 99,109 ----

  - (void) setTextContainer: (NSTextContainer*)aTextContainer
  {
!   if( _textContainer != aTextContainer )
!   {
!     ASSIGN(_textContainer, aTextContainer);
!     [aTextContainer setTextView:self];
!   }
    // FIXME: Could also get a reference to the layout manager
    //ASSIGN(_textStorage, [[aTextContainer layoutManager] textStorage]);
  }


---
 *  Georg Fleischmann
  * vhf interservice GmbH
  * research and development on self-similarity and geometry of fractals
 *  [EMAIL PROTECTED]

Reply via email to