"Richard Frith-Macdonald" <[EMAIL PROTECTED]> writes:
> This mail is an automated notification from the bugs tracker
>
> ------------------ Additional Follow-up Comments
> I fixed the bug in NSNumber and added a
> simple mechanism for retaining decoded objects ... store them in an
> NSMutableArray until the NSUnarchiver is deallocated.
>
>From the top of my head, I am not sure if this is correct.
Consider the following code in initWithCoder:
- initWithCoder: ...
{
....
[self dealloc];
self = someotherobject;
....
return self;
}
Arguably this is bad style, you should NOT dealloc, but just release.
But AFAIK this works with WO4.5, and this will not work if you
put the objects in an NS(Mutable)Array during unarchiving.
(It will crash when the array is deallocated.)
I think there should be a solution that works better.
I hope my schedule allows me to investigate tuesday.
Wim Oudshoorn.
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep