bug-gnustep
[Top][All Lists]
Advanced

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

NSUnarchiver jumps over its -init


From: Philip Mötteli
Subject: NSUnarchiver jumps over its -init
Date: Fri, 9 Apr 2004 20:21:29 +0200

Hi


I made a subclass of NSUnarchiver. In my subclass's -init method, I initialize some instance variables. Unfortunately, my -init method gets never calld, because of

NSUnarchiver.m:415:

- (id) initForReadingWithData: (NSData*)anObject
{
        …
        self = [super init];
        …
}


It would get called, if this line would be replaced with:

        self = [self init];


Apart from the fact, that init should get called by convention, NSUnarchiver doesn't have an -init method of its own. So there shouldn't be any obstacles anyway.


Thanks for having a look at this.
Phil





reply via email to

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