Re: Custom NSView doesn't redraw itself properly after use of NSPopUpButton
Re: Custom NSView doesn't redraw itself properly after use of NSPopUpButton
- Subject: Re: Custom NSView doesn't redraw itself properly after use of NSPopUpButton
- From: alexander reichstadt <email@hidden>
- Date: Mon, 6 Feb 2006 09:40:04 +0100
Thanks for the answers I got. It turns out it was an error in
rounding the numbers for the coordinates of the popup button.
The view, one of two in a horizontal splitview, recenters the popup
button at each resize of the splitview. It seems my error was to use
float values as the new origin.x and size.width of the popup. As a
result the view redrew its background black, then used the floats for
origin and width and rounded them down, which resulted in a smaller
area being covered by the popup than the view had covered with black,
hence leaving those lines. I guess the main view does not redraw
everything black as part of optimization.
Alex
On 03.02.2006, at 17:58, alexander reichstadt wrote:
Hi,
I have a custom view, made black, in it an instance of an
NSPopUpButton. When the user changes a selection in that button,
left and right from it in my custom view there is a white line and
in it there are two black lines! When I resize the window, the
lines disappear, and it looks all black again, as it should be. I
tried all of the obvious to get this to properly redraw, but it
keeps on drawing those lines. I redrew the popup, a section of the
NSView, the entire NSView, the entire NSWindow, but nothing makes
it disappear.
Is there a work-around for this cocoa bug?
Thanks
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden