• 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
Where do these come from...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where do these come from...


  • Subject: Where do these come from...
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 15 Aug 2012 11:20:58 -0400

I have been getting the following messages in the console window while my program is running...

Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] <Error>: CGContextSetFillColorWithColor: invalid context 0x0
Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] <Error>: CGContextFillRects: invalid context 0x0
Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] <Error>: CGContextFillRects: invalid context 0x0

I have isolated their source to the following code...

	[[NSColor whiteColor] set];
	[die1 drawInRect: iDieDrawRect
			  fromRect: imageRect1
			 operation: NSCompositeSourceOver
			  fraction: 1.0];
	[die2 drawInRect: jDieDrawRect
			  fromRect: imageRect2
			 operation: NSCompositeSourceOver
			  fraction: 1.0];

What can I do to eliminate these errors? I know the simple answer is to make the context valid but I don't know how to do that.

Charlie Dickman
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: Where do these come from...
      • From: Graham Cox <email@hidden>
    • Re: Where do these come from...
      • From: Kyle Sluder <email@hidden>
    • Re: Where do these come from...
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: NSSpeechSynthesizer / DarkWake interaction
  • Next by Date: order of NSRegularExpression matchesInString result
  • Previous by thread: Re: NSSpeechSynthesizer / DarkWake interaction
  • Next by thread: Re: Where do these come from...
  • Index(es):
    • Date
    • Thread