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 <l...@ccieurope.com> wrote:
> 
> 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];
>   NSRectFill(NSMakeRect(5,5,20,20));
>   [@"disabledControlTextColor" drawInRect:NSMakeRect(30,5,200,20)
>                     withAttributes:@{NSForegroundColorAttributeName : c}];
> }
> 
> However, the rect always turns up black!
> The text is gray, see https://pasteboard.co/I4mjN99.png
> 
> How is it possible that disabledControlTextColor only has effect for text ?
> /Lars
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to