Where do these come from...
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