• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow's setBackgroundColor: method problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSWindow's setBackgroundColor: method problem (From: Andrew Madsen <email@hidden>)
 >Re: NSWindow's setBackgroundColor: method problem (From: "Mark Munz" <email@hidden>)

  • Prev by Date: Drag and Drop help
  • Next by Date: test
  • Previous by thread: Re: NSWindow's setBackgroundColor: method problem
  • Next by thread: How do I move my running app?
  • Index(es):
    • Date
    • Thread