Re: disabledControlTextColor magic ?

2019-03-07 Thread Alex Zavatone
If you open the view debugger, is it for sure black or is a black rect covering it? Sent from my iPhone > On Mar 7, 2019, at 1:33 PM, Lars C. Hassing wrote: > > I wanted to take a good look at disabledControlTextColor (and othe system > colors), so I made a small test view with > > -

Re: disabledControlTextColor magic ?

2019-03-07 Thread Lars C. Hassing
That is 0.48 /Lars Den 7. mar. 2019 kl. 21.31 skrev Lars C. Hassing mailto:l...@ccieurope.com>>: I thought that disabledControlTextColor was gray, but it is black with an alpha of 0.8! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: disabledControlTextColor magic ?

2019-03-07 Thread Lars C. Hassing
Ah, just remembered Uli Kusterer's "NSRectFill considered harmful" http://www.zathras.de/angelweb/blog-nsrectfill-considered-harmful.htm I thought that disabledControlTextColor was gray, but it is black with an alpha of 0.8! NSRectFillUsingOperation(NSMakeRect(5,5,20,20),

disabledControlTextColor magic ?

2019-03-07 Thread Lars C. Hassing
I wanted to take a good look at disabledControlTextColor (and othe system colors), so I made a small test view with - (void)drawRect:(NSRect)dirtyRect { [[NSColor windowBackgroundColor] set]; NSRectFill(dirtyRect); NSColor *c = [NSColor disabledControlTextColor]; [c set];