From: Georg Fleischmann <G.Fleischmann@vhf.de>
To: greg.casamento@gmail.com; bug-gnustep@gnu.org
Sent: Sunday, June 28, 2009 3:12:17 AM
Subject: NSTextView -initWithCoder, recent changes not working
Hello Gregory,
your recent changes in NSTextView to load the NSTextContainer from a Nib are not working properly.
The _textStorage needs a retain or will show a deadface soon.
With a retain, my Panel containing the TextView appears on screen.
But when clicking with the mouse into the empty TextView I still get a crash with the following stack:
#0 0xb788325a in -[GSArray count] (self=0x0, _cmd=0xb7fa61e0) at GSArray.m:233
#1 0xb7e697ed in _attributesAtIndexEffectiveRange (index=0, aRange=0x0,
tmpLength=0, _infoArray=0x0, foundIndex=0xbf8f1c28) at GSTextStorage.m:333
#2 0xb7e697b2 in -[GSTextStorage attributesAtIndex:effectiveRange:] (
self=0x97473d0, _cmd=0xb7b77d18, index=0, aRange=0x0)
at GSTextStorage.m:540
#3 0xb78dbddf in -[NSAttributedString attribute:atIndex:effectiveRange:] (
self=0x97473d0, _cmd=0xb7fbb0d8,
attributeName=0xb7fa9a30, index=0,
aRange=0x0) at NSAttributedString.m:403
#4 0xb7ea0671 in -[NSTextView(leftovers) mouseDown:] (self=0x9746c08,
_cmd=0xb7f9bef0, theEvent=0x97d5948) at NSTextView.m:4821
#5 0xb7e490d8 in -[NSWindow sendEvent:] (self=0x9c563c0, _cmd=0xb7effba0,
theEvent=0x97d5948) at NSWindow.m:3588
#6 0xb7cb0933 in -[NSApplication sendEvent:] (self=0x84a5eb0, _cmd=0x825c898,
theEvent=0x97d5948) at NSApplication.m:1963
...
All of this worked before the change.
Best wishes,
Georg Fleischmann
2009-05-23 11:48-EDT Gregory John Casamento <
greg.casamento@gmail.com>
* Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep
decorations in resizeWindowStartingWithEvent:.
* Source/NSLayoutManager.m: Unarchive the text containers into an
array in initWithCoder:.
* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
* Source/NSTextView.m: Changes to include text container from nib
file into the nib loading process in initWithCoder:.
_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.orghttp://lists.gnu.org/mailman/listinfo/bug-gnustep