Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect
Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect
- Subject: Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect
- From: Quincey Morris <email@hidden>
- Date: Sun, 13 Apr 2008 09:03:31 -0700
On Apr 13, 2008, at 07:15, Carter R. Harrison wrote:
CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
[self frame].origin.y, [self frame].size.width, [self
frame].size.height), cgback);
Are you sure you don't mean [self bounds]? The extent of a view in its
drawing coordinate system is given by its bounds, not its frame.
_______________________________________________
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