diff -r dee5afe5301f -r 3f74d0d4af4c src/gui/kernel/qt_cocoa_helpers_mac.mm --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm Mon Mar 15 12:43:09 2010 +0200 +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm Thu Apr 08 14:19:33 2010 +0300 @@ -1162,7 +1162,7 @@ CGrafPtr port = GetWindowPort(qt_mac_window_for(widget)); QDBeginCGContext(port, &context); #else - CGContextRef context = (CGContextRef)[[NSGraphicsContext graphicsContextWithWindow:qt_mac_window_for(widget)] graphicsPort]; + CGContextRef context = reinterpret_cast([[qt_mac_window_for(widget) graphicsContext] graphicsPort]); #endif return context; }