This works (but is deprecated in 10.6): NSOpenGLPixelFormat *pixelFomat = .... CGLPixelFormatObj b = [ pixelFomat CGLPixelFormatObj ]; CGLContextObj a = CGLGetCurrentContext(); ciContext = [ CIContext contextWithCGLContext: a pixelFormat: b options: nil ];
But this does NOT: NSGraphicsContext *currentContext = [NSGraphicsContext currentContext]; CGContextRef ctx = [ currentContext graphicsPort]; ciContext = [ CIContext contextWithCGContext: ctx options: nil ]; What is wrong? Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com