Re: Sourcelist background colors

2008-06-25 Thread Markus Spoettl
On Jun 25, 2008, at 4:09 PM, Corbin Dunn wrote: That may be a fluke -- certain views might do this, but not all. It is best to watch the appropriate notifications for your window: NSWindowDidBecomeKeyNotification && NSWindowDidResignKeyNotification My view is a custom NSView subclass, I'm n

Re: Sourcelist background colors

2008-06-25 Thread Corbin Dunn
On Jun 25, 2008, at 3:52 PM, Markus Spoettl wrote: On Jun 25, 2008, at 3:33 PM, Keith Duncan wrote: Be sure to redisplay your view when the window looses key-ness. How would this be achieved? I've been trying to figure it out, I'm sure there's something simple eluding me. It appears to

Re: Sourcelist background colors

2008-06-25 Thread Markus Spoettl
On Jun 25, 2008, at 3:33 PM, Keith Duncan wrote: Be sure to redisplay your view when the window looses key-ness. How would this be achieved? I've been trying to figure it out, I'm sure there's something simple eluding me. It appears to me that the view/window will repaint when the hosting

Re: Sourcelist background colors

2008-06-25 Thread Keith Duncan
Be sure to redisplay your view when the window looses key-ness. How would this be achieved? I've been trying to figure it out, I'm sure there's something simple eluding me. Keith ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Sourcelist background colors

2008-06-25 Thread Markus Spoettl
Hi Corbin, On Jun 25, 2008, at 10:28 AM, Corbin Dunn wrote: Yes. It is a magical NSColor that draws correctly depending on the window key-state. Create an NSOutlineView, set it to be a source list, and get the -backgroundColor. Keep it around and use it as you wish. Be sure to redisplay you

Re: Sourcelist background colors

2008-06-25 Thread Corbin Dunn
On Jun 24, 2008, at 12:57 PM, Markus Spoettl wrote: Hello List, is there a way to get the background color of an NSOutlineView when in sourcelist mode (for both key and non-ket state)? Yes. It is a magical NSColor that draws correctly depending on the window key-state. Create an NSOutli

Re: Sourcelist background colors

2008-06-24 Thread Markus Spoettl
On Jun 24, 2008, at 1:13 PM, Dave DeLong wrote: Sourcelist active background color: RGB(214, 221, 229) (#d6dde5) Sourcelist inactive background color: RGB(232, 232, 232) (#e8e8e8) I got this by taking two screenshots and using the color palette's magnifying glass. This is what you're looking

Re: Sourcelist background colors

2008-06-24 Thread Dave DeLong
Sourcelist active background color: RGB(214, 221, 229) (#d6dde5) Sourcelist inactive background color: RGB(232, 232, 232) (#e8e8e8) I got this by taking two screenshots and using the color palette's magnifying glass. This is what you're looking for, right? HTH, Dave On Tue, Jun 24, 2008 at

Sourcelist background colors

2008-06-24 Thread Markus Spoettl
Hello List, is there a way to get the background color of an NSOutlineView when in sourcelist mode (for both key and non-ket state)? NSColor doesn't seem to define the color. If not, is there a way to derive the color somehow, by blending or highlighting with another system defined color?