CGContextSetStyle console log error?
CGContextSetStyle console log error?
- Subject: CGContextSetStyle console log error?
- From: Keith Blount <email@hidden>
- Date: Fri, 24 Aug 2007 01:29:52 -0700 (PDT)
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.
In fact, the only thing I can think of that has
anything to do with a graphics context in my code are
these lines in a custom view, in its -drawRect:
method:
NSRect patternFrame = [self convertRect:[self frame]
toView:nil];
[[NSGraphicsContext currentContext]
setPatternPhase:NSMakePoint(patternFrame.origin.x,NSMaxY(patternFrame))];
I use the above just so that the background colour, if
it uses -colorWithPatternImage:, gets drawn with its
origin in the top-left of the view, otherwise it looks
very odd when scrolling. I have no idea if the above
method could have anything to do with this console
error, but it seems to be the only place I do anything
with a context...
If anyone has any ideas what might be causing this, I
would be very grateful.
All the best,
Keith
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
_______________________________________________
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