[OGo-GNUstep-Port] exception when entering a project

Marcus Müller gnustep-port@opengroupware.org
Tue, 27 Nov 2007 17:57:43 +0100


--Apple-Mail-150-979614675
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit


On 27.11.2007, at 17:28, Helge Hess wrote:

> On 27.11.2007, at 15:53, Sebastian Reitenbach wrote:
>> (gdb) frame 1
>> #1  0x0ba90e28 in -[NSObject(KeyValueCoding)  
>> setValue:forUndefinedKey:]
>> (self=0x86859688, _cmd=0x2bad3510,
>>    anObject=0x86859768, aKey=0x7f6f27e8) at NSKeyValueCoding.m:415
>> 415           [self handleTakeValue: anObject forUnboundKey: aKey];
>> (gdb) print *self
>> $1 = {isa = 0x230d38a0}
>> (gdb) po self
>> <EOGenericRecord: description Project attributes={dbStatus =  
>> inserted;
>> endDate = "2028-12-30 23:00:00 +0000"; isFake = 0; kind = "<NSNull:
>
>
> I think we broke this with the last patch. EOGenericRecord does  
> define -takeValue:forKey: which we now do not call anymore (but - 
> setValue:forKey: instead).
> This seems to break all 'old style KVC' code. Notably this does NOT  
> break on MacOS (which supports both styles [-setValue:forKey: first  
> checks for -takeValue:forKey:]]). So I still consider that a basic  
> GS issue.


This used to be a gnustep-base problem which I fixed quite a couple of  
months ago. Sebastian, which version of gnustep-base do you use? If  
it's an old version, please try a recent one from svn.

Cheers,

   Marcus

-- 
Marcus Mueller  .  .  .  crack-admin/coder ;-)
Mulle kybernetiK  .  http://www.mulle-kybernetik.com
Current projects: http://www.mulle-kybernetik.com/znek/



--Apple-Mail-150-979614675
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><br><div><div>On 27.11.2007, at =
17:28, Helge Hess wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div>On =
27.11.2007, at 15:53, Sebastian Reitenbach wrote:<br><blockquote =
type=3D"cite">(gdb) frame 1<br></blockquote><blockquote type=3D"cite">#1 =
&nbsp;0x0ba90e28 in -[NSObject(KeyValueCoding) =
setValue:forUndefinedKey:]<br></blockquote><blockquote =
type=3D"cite">(self=3D0x86859688, =
_cmd=3D0x2bad3510,<br></blockquote><blockquote type=3D"cite"> =
&nbsp;&nbsp;&nbsp;anObject=3D0x86859768, aKey=3D0x7f6f27e8) at =
NSKeyValueCoding.m:415<br></blockquote><blockquote type=3D"cite">415 =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[self =
handleTakeValue: anObject forUnboundKey: =
aKey];<br></blockquote><blockquote type=3D"cite">(gdb) print =
*self<br></blockquote><blockquote type=3D"cite">$1 =3D {isa =3D =
0x230d38a0}<br></blockquote><blockquote type=3D"cite">(gdb) po =
self<br></blockquote><blockquote type=3D"cite">&lt;EOGenericRecord: =
description Project attributes=3D{dbStatus =3D =
inserted;<br></blockquote><blockquote type=3D"cite">endDate =3D =
"2028-12-30 23:00:00 +0000"; isFake =3D 0; kind =3D =
"&lt;NSNull:<br></blockquote><br><br>I think we broke this with the last =
patch. EOGenericRecord does define -takeValue:forKey: which we now do =
not call anymore (but -setValue:forKey: instead).<br>This seems to break =
all 'old style KVC' code. Notably this does NOT break on MacOS (which =
supports both styles [-setValue:forKey: first checks for =
-takeValue:forKey:]]). So I still consider that a basic GS =
issue.<br></div></blockquote></div><div><br =
class=3D"webkit-block-placeholder"></div><div>This used to be a =
gnustep-base problem which I fixed quite a couple of months ago. =
Sebastian, which version of gnustep-base do you use? If it's an old =
version, please try a recent one from svn.</div><div><br></div><div =
apple-content-edited=3D"true"> <span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><div =
style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><p style=3D"margin: =
0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">Cheers,</font></p><p style=3D"margin: =
0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: =
14.0px"><br></p><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica"><span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>Marcus</font></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; =
min-height: 14.0px"><br></p><p style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><font face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px =
Helvetica">--<span =
class=3D"Apple-converted-space">&nbsp;</span></font></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">Marcus Mueller<span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>.<span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>.<span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>.<span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>crack-admin/coder =
;-)</font></p><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Mulle =
kybernetiK<span class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span>.<span =
class=3D"Apple-converted-space">&nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span><a =
href=3D"http://www.mulle-kybernetik.com">http://www.mulle-kybernetik.com</=
a></font></p><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Current =
projects:&nbsp;<a =
href=3D"http://www.mulle-kybernetik.com/znek/">http://www.mulle-kybernetik=
.com/znek/</a></font></p><br =
class=3D"Apple-interchange-newline"></span></div></span> =
</div><br></body></html>=

--Apple-Mail-150-979614675--