Re: CGGStackRestore: gstack underflow
Re: CGGStackRestore: gstack underflow
- Subject: Re: CGGStackRestore: gstack underflow
- From: Gordon Apple <email@hidden>
- Date: Wed, 06 Aug 2008 00:08:32 -0500
- Thread-topic: CGGStackRestore: gstack underflow
It does not appear to come from anything in my drawing code. It only
happens when I use layers. The view in a scroller. Moving the scroll bars
or resizing the window results in a flood of such console messages. The
drawLayer:inContext: appears to be balanced:
NSGraphicsContext *nsGraphicsContext;
nsGraphicsContext = [NSGraphicsContext
graphicsContextWithGraphicsPort:ctx flipped:YES ];
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
... (My drawing)
[NSGraphicsContext restoreGraphicsState];
This was straight out of the Core Animation Cookbook.
On 8/5/08 5:09 PM, "Kyle Sluder" <email@hidden> wrote:
> On Tue, Aug 5, 2008 at 5:44 PM, Gordon Apple <email@hidden> wrote:
>> What should I be looking for to find the problem?
>
> I'm not a CoreGraphics expert, but my first instinct is too many calls
> to -[NSGraphicsContext restoreGraphicsState].
>
> --Kyle Sluder
_______________________________________________
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