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 3tothe...@comcast.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com