[Top][All Lists]

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

Re: NSTextField problems

From: Enrico Sersale
Subject: Re: NSTextField problems
Date: Mon, 27 Jan 2003 21:39:45 +0200 (EET)

On Mon, 27 Jan 2003, Alexander Malmberg wrote:

> Enrico Sersale wrote:
> >
> > Updated from cvs, trying to select a NSTextField, I get this:
> >
> > 2003-01-27 13:38:18.326 GWorkspace[14398] GSTextStorage.m:393  Assertion
> > failed in _attributesAtIndexEffectiveRange.  Error in binary search
> > algorithm
> Fixed in cvs.

Ok, now cliking in a NSTextField doesn't crash the app anymore, but:

- after the first mouseDown:

1) the text dishappears.

2) I get a:
invalid text container

And, if I try to modify the contents of the field I have:

- if I drag the mouse to select:
the field is not the first responder anymore. (no selection)

- if I try to write something:

1) again:
invalid text container

2) then the app crashes:

#0  0x405fffa1 in kill () from /lib/libc.so.6
#1  0x405a6fe6 in raise () from /lib/libpthread.so.0
#2  0x40601264 in abort () from /lib/libc.so.6
#3  0x400ec896 in _NSAppKitUncaughtExceptionHandler (exception=0x8383318)
    at NSApplication.m:129
#4  0x40432c9c in -[NSException raise] (self=0x8383318, _cmd=0x40543e10)
    at NSException.m:242
#5  0x404329a0 in +[NSException raise:format:arguments:] (self=0x40543d80,
    _cmd=0x40543df8, name=0x40543fb8, format=0x40333368,
    argList=0xbfffea40 "\200U-@\000"...) at NSException.m:196
#6  0x404328dc in +[NSException raise:format:] (self=0x40543d80,
    _cmd=0x40332f98, name=0x40543fb8, format=0x40333368) at
#7  0x40263397 in -[GSLayoutManager(glyphs)
glyphRangeForCharacterRange:actualCharacterRange:] (self=0x84b4380,
_cmd=0x40331b38, charRange=
      {location = 0, length = 8}, actualCharRange=0x0) at
#8  0x4025d62c in -[NSTextView(GNUstepPrivate) rectForCharacterRange:] (
    self=0x85c6f68, _cmd=0x403311c8, aRange={location = 0, length = 8})
    at NSTextView.m:4055
#9  0x40258a89 in -[NSTextView(leftovers)
setSelectedRange:affinity:stillSelecting:] (self=0x85c6f68,
_cmd=0x40331110, charRange={location = 0, length = 0},
    affinity=NSSelectionAffinityDownstream, stillSelectingFlag=0 '\000')
    at NSTextView.m:2648
#10 0x402580a2 in -[NSTextView(leftovers) setSelectedRange:]
    _cmd=0x40332468, charRange={location = 0, length = 0}) at
#11 0x4025fbaa in -[NSTextView(user) actions:deleteBackward:]
    _cmd=0x402fcbf8, sender=0x1) at NSTextView_actions.m:577
#12 0x40457744 in -[NSObject performSelector:] (self=0x85c6f68,
    _cmd=0x40330c88, aSelector=0x402fcbf8) at NSObject.m:1560
#13 0x40255565 in -[NSTextView doCommandBySelector:] (self=0x85c6f68,
    _cmd=0x402fcc58, aSelector=0x402fcbf8) at NSTextView.m:1531
#14 0x401702af in -[NSInputManager doCommandBySelector:] (self=0x819ca68,
    _cmd=0x402fcc00, aSelector=0x402fcbf8) at NSInputManager.m:770
#15 0x4016ff4b in -[NSInputManager handleKeyboardEvents:client:] (
    self=0x819ca68, _cmd=0x4030d400, eventArray=0x81ce448,
    at NSInputManager.m:649
#16 0x401b867d in -[NSResponder interpretKeyEvents:] (self=0x85c6f68,
    _cmd=0x40331b28, eventArray=0x81ce448) at NSResponder.m:124
#17 0x4025d56b in -[NSTextView(leftovers) keyDown:] (self=0x85c6f68,
    _cmd=0x40324e60, theEvent=0x8939920) at NSTextView.m:4010
#18 0x40227b63 in -[NSWindow sendEvent:] (self=0x8663e28, _cmd=0x402dcb00,
    theEvent=0x8939920) at NSWindow.m:2932
#19 0x400f1290 in -[NSApplication sendEvent:] (self=0x81cf868,
    _cmd=0x402dc860, theEvent=0x8939920) at NSApplication.m:1424
#20 0x400efdcc in -[NSApplication run] (self=0x81cf868, _cmd=0x80ed618)
    at NSApplication.m:1017
#21 0x0804c6a4 in main (argc=1, argv=0xbfffefd4, env=0xbfffefdc) at
#22 0x405ef0c4 in __libc_start_main () from /lib/libc.so.6

reply via email to

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