Re: CGContextSetStyle console log error?
Re: CGContextSetStyle console log error?
- Subject: Re: CGContextSetStyle console log error?
- From: Andrew Merenbach <email@hidden>
- Date: Mon, 27 Aug 2007 08:49:21 -0700
Hi, Felix,
Pardon me if I'm wrong, but rather than calling -drawRect: directly,
couldn't you call -display or -displayIfNeeded (or even -
displayIfNeededIgnoringOpacity) in order to force the redrawing of
your view?
Cheers,
Andrew
On Aug 27, 2007, at 7:03 AM, Felix Franz wrote:
On Aug 24, 2007, at 10:29 AM, Keith Blount wrote:
Hi,
From time to time my app generates the following
console error:
CGContextSetStyle: invalid context
Does anybody know what this means or what it indicates
I am doing wrong? An internet and archive search
reveals nothing, and there is nothing about
"CGContextSetStyle" in the docs. Moreover, I do
nothing with CGContext at all in my code. My app
includes the Quartz framework only for use of the
PDFView.
I saw similar console errors while running some badly coded unit-
tests.
I called drawRect: directly on a custom view to assure the objects
in this view get their
draw-method called. All calls to the graphicsContext emitted those
"invalid context"
errors. You can put a breakpoint on the syslog-function (seems to
be called by
Quartz error-reporting) to stop where the error message gets logged.
HTH,
felix
_______________________________________________
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
_______________________________________________
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