@@ -40,19 +40,19 @@ return [[OFWideCString alloc] initWithWideCString: str]; } - (char*)cString { - [OFNotImplementedException newWithObject: self - andMethod: "cString"]; + [[OFNotImplementedException newWithObject: self + andSelector: @selector(cString)] raise]; return NULL; } - (wchar_t*)wcString { - [OFNotImplementedException newWithObject: self - andMethod: "wcString"]; + [[OFNotImplementedException newWithObject: self + andSelector: @selector(wcString)] raise]; return NULL; } - (size_t)length { @@ -66,24 +66,25 @@ return self; } - (OFString*)clone { - [OFNotImplementedException newWithObject: self - andMethod: "clone"]; + [[OFNotImplementedException newWithObject: self + andSelector: @selector(clone)] raise]; return nil; } -- (int)compare: (OFString*)str +- (int)compareTo: (OFString*)str { - [OFNotImplementedException newWithObject: self - andMethod: "compare:"]; + [[OFNotImplementedException newWithObject: self + andSelector: @selector(compareTo:)] + raise]; return 0; } - (OFString*)append: (OFString*)str { - [OFNotImplementedException newWithObject: self - andMethod: "append:"]; + [[OFNotImplementedException newWithObject: self + andSelector: @selector(append:)] raise]; return nil; } @end