• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CIContext in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CIContext in 10.6


  • Subject: CIContext in 10.6
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 12 Apr 2010 21:39:08 +0700

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CIContext in 10.6
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: IKImageView delegate
  • Next by Date: Re: CIContext in 10.6
  • Previous by thread: Re: Data managment
  • Next by thread: Re: CIContext in 10.6
  • Index(es):
    • Date
    • Thread