diff --git a/src/appkit.rs b/src/appkit.rs index 45855d7..5b5fb3c 100644 --- a/src/appkit.rs +++ b/src/appkit.rs @@ -1341,11 +1341,11 @@ impl NSOpenGLContext for id { // Context Creation unsafe fn initWithFormat_shareContext_(self, format: id /* (NSOpenGLPixelFormat *) */, shareContext: id /* (NSOpenGLContext *) */) -> id /* (instancetype) */ { - msg_send()(class("NSOpenGLContext"), selector("initWithFormat:shareContext:"), format, shareContext) + msg_send()(self, selector("initWithFormat:shareContext:"), format, shareContext) } unsafe fn initWithCGLContextObj_(self, context: CGLContextObj) -> id /* (instancetype) */ { - msg_send()(class("NSOpenGLContext"), selector("initWithCGLContextObj:"), context) + msg_send()(self, selector("initWithCGLContextObj:"), context) } // Managing the Current Context