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 PROTECTED]> wrote:

> On Tue, Aug 5, 2008 at 5:44 PM, Gordon Apple <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to