@@ -25,11 +25,10 @@ #import "OFPlugin.h" #import "OFString.h" #import "OFInitializationFailedException.h" -#import "OFNotImplementedException.h" #import "autorelease.h" #ifdef _WIN32 # define dlopen(file, mode) LoadLibrary(file) @@ -68,14 +67,17 @@ } - init { if (object_getClass(self) == [OFPlugin class]) { - Class c = [self class]; - [self release]; - @throw [OFNotImplementedException exceptionWithClass: c - selector: _cmd]; + @try { + [self doesNotRecognizeSelector: _cmd]; + abort(); + } @catch (id e) { + [self release]; + @throw e; + } } return [super init]; }