@@ -94,21 +94,22 @@ { } - (void)dealloc { - @throw [OFNotImplementedException exceptionWithClass: isa + @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; [super dealloc]; /* Get rid of a stupid warning */ } @end @implementation OFMutableSet + (void)initialize { if (self == [OFMutableSet class]) - placeholder.isa = [OFMutableSet_placeholder class]; + object_setClass((id)&placeholder, + [OFMutableSet_placeholder class]); } + alloc { if (self == [OFMutableSet class]) @@ -117,12 +118,12 @@ return [super alloc]; } - init { - if (isa == [OFMutableSet class]) { - Class c = isa; + if (object_getClass(self) == [OFMutableSet class]) { + Class c = [self class]; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; } @@ -129,17 +130,17 @@ return [super init]; } - (void)addObject: (id)object { - @throw [OFNotImplementedException exceptionWithClass: isa + @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; } - (void)removeObject: (id)object { - @throw [OFNotImplementedException exceptionWithClass: isa + @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; } - (void)minusSet: (OFSet*)set {