Skip navigation.
 
mlRe: NSWindow's setBackgroundColor: method problem
FROM : Andrew Madsen
DATE : Tue Jul 04 07:54:08 2006

Mark,
   Thanks a lot for the reply.  That did the trick.  I have a related 
question.  I haven't been able to find a method to change the 
background color of an NSToolbar.  Does such a method exist?

-Andrew Madsen

On Jul 3, 2006, at 8:07 PM, Mark Munz wrote:

> It sounds like the Window hasn't been told that it needs to redraw 
> itself.
>
> Theoretically, you should just call setNeedsDisplay on the contentView
> ([[docWindow contentView] setNeedsDisplay:YES];),
> but if you have a toolbar, it will not invalidate some areas, leaving
> a bit of a mess.
> And there doesn't appear to be a simple way to get the toolbar view to
> invalidate it.
>
> So, instead, I call [docWindow display]; to force the entire window 
> to redraw.
>
> Mark Munz
>

Related mailsAuthorDate
mlNSWindow's setBackgroundColor: method problem Andrew Madsen Jul 4, 00:04
mlRe: NSWindow's setBackgroundColor: method problem Mark Munz Jul 4, 04:07
mlRe: NSWindow's setBackgroundColor: method problem Andrew Madsen Jul 4, 07:54