Re: NSWindow's setBackgroundColor: method problem
Re: NSWindow's setBackgroundColor: method problem
- Subject: Re: NSWindow's setBackgroundColor: method problem
- From: Andrew Madsen <email@hidden>
- Date: Mon, 3 Jul 2006 23:54:08 -0600
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
_______________________________________________
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