• 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
Windows background color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Windows background color


  • Subject: Windows background color
  • From: Christian Mike <email@hidden>
  • Date: Thu, 19 Jul 2001 07:42:26 -0500

I sent this out on Monday, and I did not get any responses. Just to be fair,
I suspect that something in my company's e-mail server sometimes drops
things, but I'm not sure. I still would like to fix this. Even if no one
knows the answer, do you at least have any hints as to where to start
looking?

Thanks.

Michael Christian

============== Original message ==============
I am trying to set the background color of a window to black using:

[self setBackgroundColor:[NSColor blackColor]];

in the awakeFromNib method for a custom NSWindow class assigned to that
window. I know that the awakeFromNib routine is being invoked, because other
things are happening properly.

However, the background of that window never changes to black. It stays the
system default. If I check the background color at some time later (for
instance in the keyDown routine), It appears to have the "correct" thing in
it. I use:

NSLog("Color = %@", [self backgroundColor]);

to view it. Before I change it to black, the color is:

NSPatternColorSpace NSImage 0xed1630 Size={8, 8} Reps=(
NSBitmapImageRep 0xed1520 Size={8, 8}
ColorSpace=NSDeviceRGBColorSpace
BPS=8 Pixels=8x8 Alpha=NO)

After I change it, it "sticks" to:

NSCalibratedWhiteColorSpace 0 1

Why isn't my window background showing as black?

Thanks.

Michael Christian
Thomson multimedia Inc.


  • Prev by Date: Re: Desktop database
  • Next by Date: Re: Windows background color
  • Previous by thread: Windows background color
  • Next by thread: Re: Windows background color
  • Index(es):
    • Date
    • Thread