Re: Crashes while reordering columns in a NSTableView
Re: Crashes while reordering columns in a NSTableView
- Subject: Re: Crashes while reordering columns in a NSTableView
- From: Rob Keniger <email@hidden>
- Date: Wed, 22 Jul 2009 16:49:49 +1000
On 22/07/2009, at 2:42 AM, Nick Zitzmann wrote:
One thought: Are you using the -CGImage method of NSBitmapImageRep
anywhere? If so, then you absolutely must not deallocate the
NSBitmapImageRep while the CGImageRef is live, because the
CGImageRef acquired via -CGImage is still using the
NSBitmapImageRep's data.
Hm, that's interesting. I'm using Garbage Collection, so does this
mean that I can't do this and get away with it?:
@implementation NSImage (Additions)
- (CGImageRef)CGImage;
{
return [[[NSBitmapImageRep alloc] initWithData:[self
TIFFRepresentation]] CGImage];
}
@end
Could explain a few things...
--
Rob Keniger
_______________________________________________
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