diff --git a/Source/NSGraphicsContext.m b/Source/NSGraphicsContext.m index ac899cf0c..2cf870aab 100644 --- a/Source/NSGraphicsContext.m +++ b/Source/NSGraphicsContext.m @@ -757,7 +757,7 @@ NSGraphicsContext *GSCurrentContext(void) { [NSException raise: GSWindowServerInternalException format: @"subclass %s(%s) should override %s", - object_get_class_name(self), + class_getName(object_getClass(self)), GSObjCIsInstance(self) ? "instance" : "class", sel_get_name(aSel)]; return nil;