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
>
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 mails | Author | Date |
|---|---|---|
| Andrew Madsen | Jul 4, 00:04 | |
| Mark Munz | Jul 4, 04:07 | |
| Andrew Madsen | Jul 4, 07:54 |






Cocoa mail archive

