• 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: CGGStackRestore: gstack underflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CGGStackRestore: gstack underflow
      • From: Ryan Brown <email@hidden>
References: 
 >Re: CGGStackRestore: gstack underflow (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: How to use a button to update an application with a text field value
  • Next by Date: Re: How to use a button to update an application with a text field value
  • Previous by thread: Re: CGGStackRestore: gstack underflow
  • Next by thread: Re: CGGStackRestore: gstack underflow
  • Index(es):
    • Date
    • Thread