diff --git a/darwin/colorbutton.m b/darwin/colorbutton.m index 5c33228f..0766a9d2 100644 --- a/darwin/colorbutton.m +++ b/darwin/colorbutton.m @@ -87,7 +87,6 @@ struct uiColorButton { CGFloat cr, cg, cb, ca; // the given color may not be an RGBA color, which will cause the -getRed:green:blue:alpha: call to throw an exception - // TODO device RGB space? rgba = [[self color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; [rgba getRed:&cr green:&cg blue:&cb alpha:&ca]; *r = cr; @@ -100,7 +99,7 @@ struct uiColorButton { - (void)libuiSetColor:(double)r g:(double)g b:(double)b a:(double)a { // TODO does this set the panel color? does it send a signal? - [self setColor:[NSColor colorWithRed:r green:g blue:b alpha:a]]; + [self setColor:[NSColor colorWithSRGBRed:r green:g blue:b alpha:a]]; } @end diff --git a/darwin/radiobuttons.m b/darwin/radiobuttons.m index eb46e6f4..5af0bdea 100644 --- a/darwin/radiobuttons.m +++ b/darwin/radiobuttons.m @@ -4,7 +4,7 @@ // In the old days you would use a NSMatrix for this; as of OS X 10.8 this was deprecated and now you need just a bunch of NSButtons with the same superview AND same action method. // This is documented on the NSMatrix page, but the rest of the OS X documentation says to still use NSMatrix. // NSMatrix has weird quirks anyway... -// TODO verify this works on 10.7. +// TODO this does not work on 10.7 // TODO // - check that multiple radio buttons on the same parent container work right