• 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: How to draw a CGImage object to a NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw a CGImage object to a NSView?


  • Subject: Re: How to draw a CGImage object to a NSView?
  • From: Jim Correia <email@hidden>
  • Date: Thu, 21 Feb 2008 08:26:50 -0500

On Feb 20, 2008, at 6:44 PM, Ken Ferry wrote:

That's reversed.  The limitation is that if you take a CGImage from an
arbitrary NSBitmapImageRep with -CGImage, the CGImage may undetectably
go invalid when the bitmap is destroyed.

Bah - yes. (In my rush to find the reference, I reversed the situation.)

Specifically, what Troy said was:

"When using -[NSBitmapImageRep CGImage], it's vitally important to keep the NSBItmapImageRep around for as long as the CGImage is in use. If you fix that problem, your crashes should disappear."

Jim

_______________________________________________

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: 
 >How to draw a CGImage object to a NSView? (From: Leopard x86 <email@hidden>)
 >Re: How to draw a CGImage object to a NSView? (From: "Ken Ferry" <email@hidden>)
 >Re: How to draw a CGImage object to a NSView? (From: Jim Correia <email@hidden>)
 >Re: How to draw a CGImage object to a NSView? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: FSFindFolder PDF Services
  • Next by Date: Use pdfkit to display a batch of pictures...
  • Previous by thread: Re: How to draw a CGImage object to a NSView?
  • Next by thread: setWantsLayer: YES causing font render problem?
  • Index(es):
    • Date
    • Thread