RE: Strange NSView redraw problem
Subject : RE: Strange NSView redraw problem
From: "Jordan Evans" <email@hidden >
Date: Sat, 30 Sep 2006 12:53:46 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GFxcqnSMIJuRrrvPV6wzhbpDoAYAtP5y0Ft0TRQ0gIBhdK6iCd1rEZbQ0iZ2y0fOeu1jmgkE95q/qLBKt5Uu3ovLe8RmOkd08wRI5yDR2pQ5eUoosYhTryDGe0AocyhDZY4WkEJwmXsnJwOYkGTZoj0CuBOBTxgliWKCVWoZgG8=
-clearColor hasn't been so clear for me in Cocoa. I have had to use Quartz:
NSGraphicsContext *nsctx = [NSGraphicsContext currentContext];
CGContextRef context = (CGContextRef)[nsctx graphicsPort];
CGRect rect = CGRectMake(x, y, width, height);
CGContextClearRect(context, rect);
CGContextFlush(context);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.