@@ -95,21 +95,22 @@ { } - (void)dealloc { - @throw [OFNotImplementedException exceptionWithClass: isa + @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; [super dealloc]; /* Get rid of a stupid warning */ } @end @implementation OFCountedSet + (void)initialize { if (self == [OFCountedSet class]) - placeholder.isa = [OFCountedSet_placeholder class]; + object_setClass((id)&placeholder, + [OFCountedSet_placeholder class]); } + alloc { if (self == [OFCountedSet class]) @@ -118,12 +119,12 @@ return [super alloc]; } - init { - if (isa == [OFCountedSet class]) { - Class c = isa; + if (object_getClass(self) == [OFCountedSet class]) { + Class c = [self class]; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; } @@ -130,11 +131,11 @@ return [super init]; } - (size_t)countForObject: (id)object { - @throw [OFNotImplementedException exceptionWithClass: isa + @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; } - (OFString*)description {