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: Nik Youdale <email@hidden>
- Date: Sat, 4 Feb 2006 10:31:16 +1100
Im not sure if this will work, you may have tried it already, but try
[[window contentView] setNeedsDisplay:YES].
I had what I think was a similar problem once, and this code fixed it.
- Nik
On 04/02/2006, at 3:58 AM, 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:
40gmail.com
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