Re: How to draw a CGImage object to a NSView?
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