• 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: CGContextSetStyle console log error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CGContextSetStyle console log error?
      • From: Scott Thompson <email@hidden>
References: 
 >CGContextSetStyle console log error? (From: Keith Blount <email@hidden>)
 >Re: CGContextSetStyle console log error? (From: Felix Franz <email@hidden>)

  • Prev by Date: Re: How do you found your way around in the ref docs?
  • Next by Date: Re: CGContextSetStyle console log error?
  • Previous by thread: Re: CGContextSetStyle console log error?
  • Next by thread: Re: CGContextSetStyle console log error?
  • Index(es):
    • Date
    • Thread