• 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 drawing issue.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIContext drawing issue.


  • Subject: Re: CIContext drawing issue.
  • From: Darkshadow <email@hidden>
  • Date: Tue, 27 Feb 2007 12:44:29 -0500


On Feb 27, 2007, at 1:07 PM, Cloud Strife wrote:


myCIContext = [[CIContext alloc] init];


This is your problem, you need to get an actual CIContext object from either a CGContext, NSGraphicsContext, or NSOpenGL context. Depends on what you're using to draw from. You can't simply -alloc and -init a CIContext.


Most likely, in this instance, you'll want to get the CIContext from the NSGraphicsContext. See:
<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSGraphicsContext_Class/Reference/ Reference.html#//apple_ref/occ/instm/NSGraphicsContext/CIContext>


and the CIContext reference:
<http://developer.apple.com/documentation/GraphicsImaging/Reference/ QuartzCoreFramework/Classes/CIContext_Class/Reference/Reference.html>



------------------------------------------------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 drawing issue. (From: Cloud Strife <email@hidden>)

  • Prev by Date: Re: Centering CheckBox in Table Column
  • Next by Date: Search Index Crash While Indexing Webarchive
  • Previous by thread: CIContext drawing issue.
  • Next by thread: postscript files printing with cocoa
  • Index(es):
    • Date
    • Thread