Re: Overlapping focus rings, clipping?
Re: Overlapping focus rings, clipping?
- Subject: Re: Overlapping focus rings, clipping?
- From: Manfred Lippert <email@hidden>
- Date: Tue, 24 Jun 2003 10:17:12 +0200
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.
Oh, really noticeable? You could try to optimize it, e.g. if you
allocate and draw the offscreen image only when the size of the control
has changed. Then remember the image in an appropriate way and reuse it
as long as the size of your control does not change etc. In normal
cases this should become faster, because you can draw the entire
control in one drawing call instead of three plus one.
Normally the drawing of a small NSImage should not be such a big
overhead that it will become noticeable. How big is your Control?
I think on the new G5 you won't notice it anymore ... ;-)
Is there no way to clip the focus ring drawing??
I don't think so.
Regards,
Mani
_______________________________________________
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.