> I have problems with NSText object in GNUStep (gstep-core-000405, Linux
> 2.0)
>
> My application have window with NSForm object with three items. When I
> click to first of them and then click
> to second, I got this message in debbuger:
>
> Uncaught exception NSInvalidArgumentException, reason: Tried to add nil
> value to dictionary
>
> Program received signal SIGABRT, Aborted.
> 0x4059b601 in kill ()
> (gdb) bt
> #0  0x4059b601 in kill ()
> #1  0x4059b42f in gsignal ()
> #2  0x4059c64f in abort ()
> #3  0x4039fa80 in   () at NSException.m:42
> #4  0x4039fdee in -[NSException raise] (self=0x86a65e0, _cmd=0x40474584)
>
>     at NSException.m:110
> #5  0x4039fbd8 in +[NSException raise:format:arguments:]
> (self=0x40474504,
>     _cmd=0x4047456c, name=0x4048c2ac, format=0x404793a0,
> argList=0xbffff064)
>     at NSException.m:75
> #6  0x4039fb3b in +[NSException raise:format:] (self=0x40474504,
>     _cmd=0x404792ec, name=0x4048c2ac, format=0x404793a0) at
> NSException.m:61
> #7  0x403bb66b in -[NSGMutableDictionary setObject:forKey:]
> (self=0x8d43580,
>     _cmd=0x40467d14, anObject=0x0, aKey=0x40230714) at
> NSGDictionary.m:362
> #8  0x4036942c in -[NSMutableAttributedString addAttribute:value:range:]
> (
>     self=0x8a34be8, _cmd=0x401ed874, name=0x40230714, value=0x0,
> aRange={
>       location = 0, length = 1}) at NSAttributedString.m:508
> #9  0x40097982 in -[NSMutableAttributedString(AppKit)
> setAlignment:range:] (
>     self=0x8a34be8, _cmd=0x40221f9c, alignment=NSCenterTextAlignment,
> range={
>       location = 0, length = 1}) at NSAttributedString.m:424
> #10 0x4012af27 in -[NSText setAlignment:] (self=0x8cb5c48,
> _cmd=0x401f6ca8,
>     mode=NSLeftTextAlignment) at NSText.m:1763
> #11 0x400b0f6d in -[NSCell setUpFieldEditorAttributes:] (self=0x8cdc830,
>
>     _cmd=0x4020afa4, textObject=0x8cb5c48) at NSCell.m:544
> #12 0x400ea190 in -[NSMatrix mouseDown:] (self=0x8cce798,
> _cmd=0x4022896c,
>     theEvent=0x8bf28f8) at NSMatrix.m:1840
> #13 0x4014f67e in -[NSWindow sendEvent:] (self=0x40709a40,
> _cmd=0x401ec654,
>     theEvent=0x8bf28f8) at NSWindow.m:2274
> #14 0x40093398 in -[NSApplication sendEvent:] (self=0x82f9410,
> _cmd=0x81a31dc,
>     theEvent=0x8bf28f8) at NSApplication.m:1209
> #15 0x80569bc in -[LetvisApplication sendEvent:] (self=0x82f9410,
>     _cmd=0x401ec3f4, theEvent=0x8bf28f8) at AppController.m:376
> #16 0x40092368 in -[NSApplication run] (self=0x82f9410, _cmd=0x81a9360)
>     at NSApplication.m:867
> #17 0x80620db in main (argc=1, argv=0xbffff774) at LetvisGNU_main.m:13
>
> My second test is:
> I have application with one window. In this window are two NSTextField
> objects. When I wrote one character to one of them
> and then click to second NSTextField object, I got this message from
> debbuger:
>
> Uncaught exception NSInvalidArgumentException, reason: Tried to add nil
> value to dictionary
>
> Program received signal SIGABRT, Aborted.
> 0x4059b601 in kill ()
> (gdb) bt
> #0  0x4059b601 in kill ()
> #1  0x4059b42f in gsignal ()
> #2  0x4059c64f in abort ()
> #3  0x4039fa80 in   () at NSException.m:42
> #4  0x4039fdee in -[NSException raise] (self=0x85778a0, _cmd=0x40474584)
>
>     at NSException.m:110
> #5  0x4039fbd8 in +[NSException raise:format:arguments:]
> (self=0x40474504,
>     _cmd=0x4047456c, name=0x4048c2ac, format=0x404793a0,
> argList=0xbffff1a0)
>     at NSException.m:75
> #6  0x4039fb3b in +[NSException raise:format:] (self=0x40474504,
>     _cmd=0x404792ec, name=0x4048c2ac, format=0x404793a0) at
> NSException.m:61
> #7  0x403bb66b in -[NSGMutableDictionary setObject:forKey:]
> (self=0x8577538,
>     _cmd=0x40467d14, anObject=0x0, aKey=0x40230714) at
> NSGDictionary.m:362
> #8  0x4036942c in -[NSMutableAttributedString addAttribute:value:range:]
> (
>     self=0x8682ca8, _cmd=0x401ed874, name=0x40230714, value=0x0,
> aRange={
>       location = 0, length = 1}) at NSAttributedString.m:508
> #9  0x40097982 in -[NSMutableAttributedString(AppKit)
> setAlignment:range:] (
>     self=0x8682ca8, _cmd=0x40221f9c, alignment=NSCenterTextAlignment,
> range={
>       location = 0, length = 1}) at NSAttributedString.m:424
> #10 0x4012af27 in -[NSText setAlignment:] (self=0x844a1d8,
> _cmd=0x401f6ca8,
>     mode=NSLeftTextAlignment) at NSText.m:1763
> #11 0x400b0f6d in -[NSCell setUpFieldEditorAttributes:] (self=0x87271b8,
>
>     _cmd=0x40223988, textObject=0x844a1d8) at NSCell.m:544
> #12 0x40133cd5 in -[NSTextFieldCell setUpFieldEditorAttributes:] (
>     self=0x87271b8, _cmd=0x40223494, textObject=0x844a1d8)
>     at NSTextFieldCell.m:155
> #13 0x40132bbe in -[NSTextField mouseDown:] (self=0x87259f8,
> _cmd=0x4022896c,
>     theEvent=0x8430a20) at NSTextField.m:288
> #14 0x4014f67e in -[NSWindow sendEvent:] (self=0x86930f8,
> _cmd=0x401ec654,
>     theEvent=0x8430a20) at NSWindow.m:2274
> #15 0x40093398 in -[NSApplication sendEvent:] (self=0x82ecfb0,
> _cmd=0x81a31dc,
>     theEvent=0x8430a20) at NSApplication.m:1209
> #16 0x80569bc in -[LetvisApplication sendEvent:] (self=0x82ecfb0,
>     _cmd=0x401ec3f4, theEvent=0x8430a20) at AppController.m:376
> #17 0x40092368 in -[NSApplication run] (self=0x82ecfb0, _cmd=0x81a9360)
>     at NSApplication.m:867
> #18 0x80620db in main (argc=1, argv=0xbffff774) at LetvisGNU_main.m:13


Reply via email to