• 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
Re: CIContext in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIContext in 10.6


  • Subject: Re: CIContext in 10.6
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 12 Apr 2010 23:55:40 +0700

On 12 Apr 2010, at 21:55, Jean-Daniel Dupas wrote:

>
> Le 12 avr. 2010 à 16:39, Gerriet M. Denkmann a écrit :
>
>>
>> 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
>> 					];
>>
>
> Why not using the 10.6 function
Because I relied on the documentation and did not look into CIContext.h.

>
>
>> But this does NOT:
>>
>> 		NSGraphicsContext *currentContext = [NSGraphicsContext currentContext];
>> 		CGContextRef ctx = [ currentContext graphicsPort];
>> 		ciContext =	[ CIContext 	contextWithCGContext: 	ctx
>> 								options: 				nil
>> 					];
>>
>> What is wrong?
>
> Without defining "does not works", we cannot help you.

Sorry about my sloppy post. Here is the complete story:

The next step:
	[ ciContext drawImage: image atPoint: io fromRect: rr ];
does not do anything. No log messages, no picture.
All things involved are non-nil.

But the 10.6 method you mentioned works perfectly. Merci beaucoup.


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

References: 
 >CIContext in 10.6 (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: CIContext in 10.6 (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: NSArrayController in entity mode and permutations (CoreData question)
  • Next by Date: Re: Data managment
  • Previous by thread: Re: CIContext in 10.6
  • Next by thread: NSArrayController in entity mode and permutations (CoreData question)
  • Index(es):
    • Date
    • Thread