Re: Overlapping focus rings, clipping?
Re: Overlapping focus rings, clipping?
- Subject: Re: Overlapping focus rings, clipping?
- From: arekkusu <email@hidden>
- Date: Mon, 23 Jun 2003 18:02:48 -0700
On Monday, June 23, 2003, at 07:10 AM, Manfred Lippert wrote:
The problem is that when the system draws the focus ring, the ring
from each piece bleeds over the other pieces.
I had the same problem in LittleSecrets. The solution: You have to
draw your control in an "offscreen image" (NSImage) and then draw it
with one drawing command. Then the system draws only one focus ring
around the entire control.
Hi, thanks for responding.
This does work, but as I wrote in my first post, I want to avoid
allocating an NSImage and drawing twice inside my draw method. I can
optimize this by only doing it for the one control that has focus, but
even then the overhead is quite noticeable, just watching cpu load
while manipulating the control.
Is there no way to clip the focus ring drawing??
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.